I added foot=use_sidepath, but despite of that it's strange that it routes via the main road. I just did the check with the 3 routing planners here, and it does the same. I will ask for extra advice ...