Who said they were unrelated? Sometimes a single commit is the best presentation of a bug fix/feature implementation, sometimes it makes more sense to split the work into multiple commits.
You know what, typing it out I can totally see why people do it the other way. A matter of personal preference probably.
Once it's done I will split the changes into commits that make logical sense, for someone wondering how the new code changes the behaviour of the existing code.