This means to stay in the water, often when support is needed to stay up. It emphasizes the feeling of being in the water.
The boat swam in the water.
I saw a dog swim to the shore.
In this sense, 'swim' is used to describe a smooth or graceful movement, often metaphorically, not restricted to water.
The dancer swam through the performance.
The car swam smoothly on the road.