It is a mathematical fact that if you divide by n that the sample variance will on average underestimate the population variance. However if you divide by n - 1 you will on average estimate the population variance correctly. An estimate that gives the correct answer on average is called an unbiased estimator.