It's really just a rule that Jirachi must follow. Every one thousand years he rewakes to grant wishes. It's just that, nobody in the anime has ever really ever mentioned a way extending the time Jirachi spends on "Earth."
So it's really just a mysterious rule and legend that Jirachi follows.
Source: Knowledge