This also deters the user from speeding between two lanes of traffic that has stopped ... a deed that carries with it some risk and that probably irks some drivers.
I'm a motorcyclist and do this regularly and legally on Sydney's narrow streets. It is quite safe. For leg powered cyclists riding with a reasonable degree of care it is certainly safer than the regular flow of moving traffic.