Another way to say "playing ball is for having fun." is "People have fun playing ball."