There's a word for that ...
Yeah, it’s called sarcasm. Not everything said needs to be taken as meaningful. Do you never say thing in jest?