Of course, the gains and losses of K-12 enrollments follow many of the broader housing trends, but school officials and district number crunchers pointed to other factors, such as birth trends, their own marketing efforts and competition from nonpublic and charter schools.