Err phase just said. but he used 50 cent words to do it so you may be a little confused.
The smell in MDMA pills is safrole. Safrole is one of the ingredients for MDMA but, this being chemistry, when the reaction happens there should be no safrole left. It's not like baking a cake, where the flour is stil in there. Safrole is converted into MDMA.
Of course no reaction is perfect and a few traces of safrole are left in even the most careful chemist's batch. Ideally at this point the chemist will wash the MDMA to remove any left over safrole, leaving you with only MDMA, which doesn't really smell. Now of course this step is not necessary and when you are cutting corners, as most illegal labs do, it is the first to be left out. This is why all MDMA you have ever come across smells like safrole; it is made illegally and as quickly as possible.
If a purist does go to the trouble of washing their powder they may actually have to add safrole later, as their 100% pure MDMA powder may be derided as fake by "those that know" because it doesn't smell right 8) . This is just another example of the vicious cycle of myth, countermyth and actualisation. But oops, I promised I wouldn't use big words like that.
Is this clear now? What you are smelling is safrole, which either was left over or put in there and is not MDMA.