In the first case, "swimming" is a present continuous and wanting to learn to swim is an action that starts from the present and continues till you complete learning.
In the second case, you want to do something in the present, and "swim" does represent the "present".