A common answer is that we live in an infinite multiverse of Universes, so we shouldn’t be surprised that at least one Universe has turned out as ours. But another is that our Universe is a computer simulation, with someone (perhaps an advanced alien species) fine-tuning the conditions.
The simulation hypothesis is not new. But this hasn’t yet been proven or disproven, and it is very unlikely that it will ever be.
// in infinite progress…