Blame the school? If only people could grow up, suck it up and accept some responsibility for their education.
Sure, it's not ideal being at a school with few resources or a few bad teachers, but anybody can do well AT ANY SCHOOL, provided they have the determination and put in enough work.