What has that got to do with the price of cheese? British rhetorical question
A rhetorical question is used when someone mentions something unrelated to the conversation.
I know you care about the environment, but what's that got to do with the price of cheese? We're talking about video games.
To be hilarious or enjoyable
"He's a serious person.- Yes, not a barrel of laughter exactly".