Usually, when you calculate any parameters on an entire population you tend to get more accurate results. However, when you working on a sample from the population you are working just with a portion of the population and, your std deviation or variance cannot be accurate.
Hence, Bessel’s correction i.e., n-1 helps in getting more accurate answers when you involve a sample.