It is all about one thing - heart rate. Resistance in the water prevents your body from moving faster and your heart from beating as fast as it would if you ran.
That simple.
It is a fat burning workout, though, but not as good as running is. However, if you *can't* run, you can burn fat from swimming. The ratio of fat burned is higher with swimming, but the number of calories is a small fraction of that of running.