My experience - niece and nephew went to non-secular school grades 6-12. Almost half of each senior class took calc. Not because they were smarter, but because they were of middle-class families that enforced educational aspirations and expectations. Almost all parents I spoke to chose this school not for spiritual reasons but to remove their child from their perceived mediocrity of public schools.
This school also offered scholarship, based on need only, to local inner-city children. None of these children had been in an 'exceptional' track in public school. But the scholarship kids all excelled and did well academically.