It's not a matter of safety. It's a matter of space in the overhead bins, which then becomes a matter of safety, when they are full and stuff clutters the cabin. It is certainly also a matter of weight and fuel consumption as witnessed by the weight limit on hand luggage imposed by many airlines.
Till