Usage patterns
〈人〉が学校に行くfor someone to go to school
I go to school at 7 every morning.
学校に通うto attend school regularly
My younger brother commutes to school by train.
学校を休むto be absent from school
I had a fever, so I stayed home from school.
学校を卒業するto graduate from school
I will graduate from this school next year.
学校で〈事〉を学ぶto learn something at school
I'm learning Japanese history at school.