STAB stands for
Same
Type
Attack
Bonus
So it means if you have a water type out and it uses a water type move, it gains a bonus attack power (I believe its 1.5). So it gets more power. But the same thing doesn't apply to a water type using a ice type move. Hoped this helped! :D