The reason is that they were donated to the rest of the world to use freely. Also SMTP is not software it is a protocol that is implemented in software, so this is not a valid example.
Atually this is a niave statement. Much in the same way that it was argued that hijaaking someone's open wireless connection was legal, you get charged for theft of electricity! there is always a cost in production of code though not always obvious or significant.