The air outside is constantly sterilized by UV light.

Absolutely not, most UV is blocked by the ozone layer, this is why we don't all develop skin cancer at 15. Otherwise, what would be the point of the UV-sterilization method?

Care to taste a spoonful of dirt in a sunny day to see how sterile it is?

This is a pretty common thing kids do. They're generally fine.

As a kid that ocassionally ate dirt, you're usually fine after it, if you ignore the worms you'll poop afterwards. My point was that it's not sterile even if it's under the sun all day, as UV rays don't penetrate deep, and dirt is a good thermal insulator. Bacteria and parasites, specially their spores/eggs, can be very hardy. It's amazing what our digestive system is capable of handling.

It certainly isn't sterile but if a spoonfull of dirt makes you sick then you should already be considered immune compromised.

I've done it, and aside from not being able to breathe well for a while while you douse your mouth and throat with a garden hose, nothing bad will come of it.