Well right, it's all related. The schools are good (largely) because the people sending their kids there are willing and able to pay extra to live near good schools. The houses cost more money because the schools are good. Feedback loop.
I would modify your statement to say “the schools are good because of the type of parents the kids in the school have” - who are well educated, higher earning parents that can provide the guidance and resources that results in the qualities “good” schools are known for.