Why do space vehicles heat up as the enter the atmosphere?

fricton