It has to do with deleted posts. When posts are deleted they still occupy space but users can't see them.
Take a look at the more controversial or colorful threads with lots of deleted posts. There will almost always have the phenomenon you mentioned.