walk是动词,表示“步行、散步”这一动作。on foot是个介词短语,表示一种交通方式,在句中一般用作方式状语。
e.g. She walks to school.
She goes to school on foot