cost per student is higher for high school students. So if you take an average across all grades for public schools and then compare that to specific cost per grade at private schools, of course private schools are going to look relatively cheaper for younger students.
For each of the grades K-12, here is the % of non-religious private schools in San Francisco that charge $56k or more: