I think story-wise these things needed to happen:
The Harvey Dent Act had to have a real effect on Gotham's crime rate.
Harvey Dent himself had to become a legend.
The Batman's own legend had to fade away.
Talia al Ghul had to become old enough to be part of the story.
Whether 4 years would've been enough for all this to happen is debatable IMO, especially for the first part. Laws take a long time to have noticeable effects. So 8 years seemed reasonable to me.