We use this expression to talk about habits or repeated actions in the past which we don't do in the present.
For instance: "I used to pass all these grammar tests with ease!"