My best guess is that this shape is somehow the “standard” for ImageNet-related models.
AlexNet used it and a lot of models adapted the shape.
The models were originally written in the sense that the input shape had to be constant, which would also explain a specific shape which “just works”.
Today you would most likely find model implementations with adaptive pooling layers, which allow different input shapes.