Please pat attention to the word "-에서" which means the starting point of the location. In this sentence, "집에서" is the sbject that the speaker tells distance between home and school.