The person was clearly not going to cross right there at the corner so such an abrupt stop was totally unnecessary. If the car assumed he was going to stop a bit further at the yellow lines it should have either braked earlier or just keep on driving.
The way it reacted it IMO just looks like clueless new driver.