Very easy mistake to make. You don’t realize how much you just do things like look for oncoming traffic by instinct and over there, your instincts betray you. I nearly got turned into a hood ornament more than once.
I almost got picked off in London in 1973 because I looked the wrong way as I stepped off the curb (or kerb, as they call it).