For what it's worth, people often believe this even when it's not true in their area. For example, in Austin (where I live) it is legal to cycle on sidewalks, though I often hear people say they think otherwise.
Now, I'm not saying I do it, as a cyclist who wants to live a long life. But it is legal and (as my sibling commenters have said) it doesn't give any drivers a right or reason to hit cyclists.