Japan did it so they could invade the Phillippines without having to worry about the US Navy stopping them
As it turns out they missed all of the naval shipyards and only bombed some of the ships and a generator or two, so it did nothing but infuriate America