Another way to say "playing ball is for recreation." is "recreation is a reason for playing ball."