Unfortunately, it was at the worst possible time that Obi-Wan had to leave for Utapau to capture Grievous because it meant leaving Anakin within Palpatine's reach - entirely vulnerable.