Why do cows wear a bell?

Their horns don’t work