Fair life lesson though. Sometimes you will be shouted at no matter if it's your fault or not, simply because a person is in a bad mood and/or in a position of power. There's no real need to escalate the conflict.
There's surprisingly a lot of people like him. My father is like this except it's his words that are awful instead of his expressions. The type of actions showing lots of kindness despite what what they say/express