UC Berkeley tuition and fees comes to about $13k per year for California residents. The average private school tuition is over $30k per year.
Not sure why you think that it's so expensive. I went to school in Georgia (much lower cost of living area) and UCs are only about 15% more expensive than our flagship schools (Georgia Tech and UGA, and GSU).