You're largely brainwashed. I know a fair number of people who have taken and/or continue to take Ecstasy, LSD, Mushrooms and even Cocaine, some of them on a very regular basis. None of them have ever "blown their kidneys" or, in fact, had any severe negative reaction. As non-anecdotal evidence, about a million people take ecstasy every weekend in the UK - that's not the same million people each time, so that amounts to millions of active users in the UK. If Ecstasy was so dangerous, you would see it on newspaper headlines every day.
Possible causes of your friend's unfortunate disaster include:
1) It wasn't MDMA/MDA (typical Ecstasy components), as binarymax suggested. Until drugs are legal, who the hell knows what you're actually taking. Could be anything, including washing powder. Unlikely to be actually poisonous stuff, since dealers like repeat customers too, but really, it could be anything.
2) Your friend took an exceptional amount, was not used to intoxicating substances, and had very fragile kidneys. Perhaps his kidneys were about to give up anyway, and Ecstasy just pushed him over the edge. Maybe a good drunken night would have done the same thing.
3) It was just a coincidence.
I suspect a combination of 1 and 2... probably it wasn't Ecstasy, and your friend was already in danger of blowing his kidneys anyway.