the school = 那個學校 (the = 定冠詞/"definite article", 表示一個具體的學校;a particular school)
a school = 一個學校 (a = 定冠詞/"indefinite article", 表示一個學校,一般而言;a school, generally speaking)
其實,如果是具體的學校,不得加‘the',我們喜歡簡單地說”on the way to school",這是平常的說法,也常常聽說“going to work”, 或 “on the way to work”。