I don't think your dogs are heated up, swimming will excercise almost every muscle in a dog's body, and while swimming is a good way to cool off, they will have had a great workout when they get out of the water, and therefore they pant.
If you would like to avoid that, give them a small kiddie pool (plastic shell) that they can sit or lie down in to cool off instead of having to swim around.