It's a joke, purely and simply. It occurs in several humorous monologues and sketches, where it initially sounds like an endorsement until you think about it and then you realise that it means the opposite of what it sounds like. Therefore, those who say is it is ironic are correct.