have to do withto be about or connected with somebody or something
What does the bed have to do with it?