They can be used in many different ways.
"I left food for you" = I left food, specially so that you would have it.
"He left a fortune to me" = He left a fortune, with the instruction that it should go to me.
"He left a fortune for me" is also correct, in a different sense (it implies he's still alive)
"I left food to you" sounds strange.