Why do people shout at their dogs when their dog can't understand them?

I've never understood what the point is? They might recognise their name but I dont get why people shout so much at them