How does Unity export to so many platforms?

This week a friend, during a talk about game development and Unity3D, asked me: “How does Unity export to so many and different platforms?” I started to think and formulate my answer, struggled and I couldn’t really answer why. I never really thought about it. So I started doing some research about it.