Gates is taking advantage of the piracy situation in Somalia (hug your mother, everyone) to change the future direction of the US military. This is another step in a push that started with the budget unveiling to radically alter the future of the United States as a global power.
Right now, it is looking like Obama knew exactly what he was doing when he asked Gates to stay on as Secretary of Defense.