A private school has a different community. Community doesn't necessarily mean just the surrounding area and people within.
The private school community would consist of the parents, students and teachers involved. Economically, they may not differ from their neighbors, but their values and goals are likely very different. It's a subset.
If that is your definition of community, then I agree with your opinion.