A man is dancing in front of a band.
The man is having a good time.
Having a good time doesn't necessarily involve dancing.
Just because a man is dancing in front of a band does not mean he is having a good time.
dancing doesn't mean having good time