Most of the time it's for safety, other times it can produce "interesting" results.
Example:
When I moved into my house I didn't have any grounds, even though I had a lot of 3 prong outlets. When I hooked up my LCD TV my cable was flaky. And there was another side effect, I got zapped every time I touched the outside connector. You know, the one that is supposed to be ground. Inside the TV's power supply there are some caps that go between the line, neutral, and ground. This is a common and fair design. When it's not grounded, it puts the ground at approximately 60VAC (I measured 70...) due to leakage currents and the like. Thus, my LCD TV caused the shield on the coax, which happens to be ground, to be the ground. And this ground isn't a good ground like I needed it to be. So the net result... I got shocked every time I messed with the coax until I just used a pair of rabbit ears with that TV.