口 is a wide-open mouth, drawn as a simple square.
Picture a mouth stretched open wide, which is why the ancient shape is just a box. That same shape later stretched to mean any opening, like a doorway or entrance. It also sits on the left side of mouth-related characters like 吃, 喝, and 叫.