Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.
Because either he did not know it was hacked, did not know you were not allowed to trade hacked stuff, or just didnt care. It's not really that uncommon for people to accidentally offer hacked stuff.