GPA isn’t really a measurement colleges tout, nor do most rankings or potential students pay much attention to it. Test scores are the thing comparable across high schools, and colleges are biased toward high test scores because it is a widely considered metric for the college. And higher scores are more likely to come from more rigorous high schools. So colleges wanting to boost their stats actually favor students from more rigorous high schools.