Let's consider the opposite situation: a government official, let's say even President Obama becomes a lobbyist for an oil company a day after leaving his office: people would then say that he was paid by the oil industry already before leaving office, which would imply corruption.
To avoid accusations like this, government officials should wait.