Kos is right, they use it for a more accurate altitude reading. If you compare results from tracking a bike ride (for example) on a phone without the barometer it's quite a lot different to with.
That is pretty impressively accurate for something that is stuffed in a mobile phone. Haven't all these sensors in mobiles made gyros and accelerometers and such cheaper for other things?