Using an ironic slant to shock an audience is the stock-in-trade for a modern comedian, and inevitably, it can be misjudged when a comedian simply let his mouth run away with him.
Ninety-nine percent of the time it comes over as edgy wit, just once in a while, it's a case of "I wish I hadn;t said that ..." and this was one of those.
Credit to Alan Carr realising that his remark was not clever at this time, and apologising.