"used to " = made familiar with or accustomed to. Example: I am used to having tea and toast for breakfast.
( it also takes an infinitive or implied infinitive) used as an auxiliary to express habitual or accustomed actions, states, etc., taking place in the past but not continuing into the present .
Example: I don't go fishing these days, but I used to catch fish here every day.
"used for" here "for" is a function word to indicate an action
Example: A spade is used for digging in the sand.
A knife and fork is used for eating your food.
A hairdryer is used for drying your hair.