Yeah, it’s called sarcasm. Not everything said needs to be taken as meaningful. Do you never say thing in jest?
It’s called lying, and politicians do it all the time.