#1. The shape.
A circular can would have the most diameter but would also leave too much empty space in packing, and would roll off the table. A square can would have no empty space when packing but would require super strong corner, not to mention how it would be hard to drink from. The cylinder is a meeting of the two.