Another way to say "playing sports is for having fun" is "One purpose of playing sports is to have fun."