Orbital mechanics, Earth does not fall to Sun because it is going around Sun pretty fast. To drop in Sun you have to lose this velocity. And there is no mentionable drag. Kinda similar how satellites around Earth need to go fast too to stay up. Go fast enough and you get out, but you are still stuck with sun.