I think it had to do with a compromise between HBO wanting at least two more years, there not being enough material for 20 episodes (which I’m skeptical of), and renegotiated actors’ contracts with higher per-episode salaries.
But that’s all speculation with little to back it up.