To hug someone out of spite or teach them a lesson. It is also suitable after fights and arguments or towards people you simply don't like.
Other person: *pushes you*
You: What was that for?!? That wasn't cool.
Other person: Go fuck yourself.
The other person was just bitch-hugged.