I don't understand ehy you would set up an in development website period as publically accessible until you had it locked down. That just seems like a poor idea.
It doesn't even occur to a lot of people that this might be a bad idea. Salespeople, marketing, a sole prop, or someone who wants to set up a blog are all people who would have absolutely no idea how to do this right... and no clue that they're doing it wrong.
I’m just flummoxed trying to imagine a person who can install and run certbot, but doesn’t know how to (or think to) configure locally, or even set a basic HTTP password on the site until WP is configured.
People don't have to understand what they're doing to use a tool. Sometimes, like this time, there can be drawbacks to this.