These are different meanings of "used to". They are pronounced differently too. "I am used to swimming" (soft "s") — "used to" is an idiomatic phrase meaning "accustomed to".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.