If I had to guess, it’s likely a weirdly written local ordinance… maybe something that had good intent, like ensuring room for crosswalks, but it’s being applied in scenarios that don’t make sense or weren’t considered when the rule was written strictly for compliance reasons. It’s definitely something that varies by city/town.