A man visiting a friend in the hospital.
A man sits on a hospital roof.
The man either sits or he is visiting a friend, but not both at the same time, and he is either in the hospital or he is on a hospital roof but not both simultaneously.
visiting a friend in the hospital wouldn't be on the roof
The man cannot be in the hospital and on the hospital simultaneously