Chat GPT is an AI tool, so if you train it do something it will do. You can explicitly ask it to not make such jokes and it will stop doing it. So if you put the same question again it will not respond with the joke instead you will have the same