No, there is no exception for the "main" package. It's just build tag trickery. You can do this with any package names (although it doesn't make much sense to do so).
Ah, I see what you're objecting to. Yes, it is build tag trickery, and wouldn't work without it