The driver is licensed to drive the vehicle and they are fully responsible for driving it safely.
Despite the driver being fully responsible from a legal standpoint, there are endless preventative measures in place to stop this from happening, like the extra signage, road narrowing then all the safety policies put in place by bus companies.