Most developed countries stamp on the way out. The USA is an odd man out in not checking passports of outgoing people at border crossings. Even in Schengen where a computer system was rolled out that automatically flags overstays, etc., it is still common for passport control to scrutinize foreigners' stamps just in case some previous passport control didn't properly enter the movement into the computer system.