for whatever reason articles were attached to "hospital" but not to "school,"
Doesn't it depend on why you are going? For example; a child might say, 'I am going to school to learn', a parent might say, 'I am going to the school for parents evening.