But what could be someones use for it through a browser?
It makes more sense if you use it on your smartphone's browser, which will eventually support HTML5 features.
Why is it installed in the mac in the first place ?
To minimize damage on the hard disk in case the machine falls.
With a triaxial accelerometer, the system detects sudden acceleration, such as when the computer is dropped, and prepares the relatively fragile hard disk drive mechanism for impact. The system disengages the disk drive heads from the hard disk platters, preventing data loss and drive damage from a disk head crash. When the computer is stable, the drive operates normally again.
More info:
http://en.wikipedia.org/wiki/Sudden_Motion_Sensor