He was being sarcastic.
He may have been being sarcastic in this instance, but such things have happened in the past.