Welcome to the reality of the "them and us" approach of the daily commute.
Both parties believing they have rights over the other, resulting in a mess a lot of the time.
Pedestrians do themselves no favours, just walking out in the road anywhere they choose, and motorists constantly ignoring crossings, red lights, and speed restrictions.