Mammals evolved from four-legged ancestors. They use their limbs to walk, climb, swim, or fly.
Some land mammals have toes that produce claws for climbing or hooves for running. Aquatic mammals like whales and dolphins have flippers which evolved from legs.