When you have to walk alot make it fun

I have been thinking how people have the willpower to walk to the gym that is very far away from them. Apparently, music and online courses make it a lot more enjoyable.