Geometry, economics, and one very defensive box manufacturer.
Square boxes are cut from a single sheet of corrugated board with almost no waste, fold without special tooling, and stack flat in storage and delivery bags. A round box would need curved dies, waste material, and would not stack. The pizza is round for cooking; the box is square for logistics.