It is a terrible ordeal, but for all of the other factors brought up the critical factor is that he set off an explosion detector (and clearly it doesn't get false positives often given the response they showed). Everything else (about Ramadan, being Hindi, the color of one's skin, etc) may be nothing more than decorations, and no one here knows what would happen if John Smith Anglosaxon set off the same detector in…
This was a flight to return home, so I didn't ask to leave the airport, but they did give me the option of going through the porno-scanner or staying grounded. I understand that the TSA at least claims that the scanner doesn't actually involve showing anybody an image beyond a diagram (not that I'm shy anyway), and it's nowhere near as risky as the backscatter, so I went for it this one time and I was on my way.