In the song Lose Yourself by Eminem (which is by the way one of my favourite songs of all time), at the end he says:
You can do anything you set your mind to, man.
Why do we need the "to" after "mind"? Note that I have understood the meaning of the sentence, but not the whole construction.