Another way to say "swimming is for exercise" is "Swimming is a form of exercise."