There was an opening, just not a very big one at first. Looked like it may have caved in over the years the base was abandoned.
In Star Wars and a whole lot of other movies you’re just going to have to accept that things happen at the right time. It’s fiction, not real life.
Arguably you can only pin the bomber crews on Poe. 😉