In the comic, the desire path happened because they wouldn’t just connect to the crosswalk. Even in the end, the constructed path connects to the sidewalk slightly to the side instead of going straight to the crosswalk.
Desire paths happen because of poor, antihuman design choices.
Mostly connections and luck based on the trash I hear that’s somehow popular.