there’s a thing called the “difficulty adjustment” that makes it harder or easier to mine depending on how much competition there is among miners
it’s a probabilistic estimate that network dynamically makes that attempts to average a new block every 10 minutes