Isn't a part of dealing with group dynamics though recognizing when there is harm in/to the group and removing it? (sorry)
If the whole point was to teach how to deal with group dynamics, then kicking Bob out should have been rewarded with an automatic 100% Grade.
But since you mentioned "tasks", I assume there was actual work beyond chatting up your teammates. So your description is inaccurate.
Whenever a lecturer responded to a student's complaint about other group members doing no work by saying something like "I don't care, work it out amongst yourselves, in the real world you have to be able to work in groups", I would think to myself "in the real world, people who refuse to do work get fired".