The Philippines are our allies and they are in the range of North Korea so it seems reasonable that a President would try having some civil discourse with their leader to help bolster the safety of the region and any civilians within reach.
It’s not idiotic by any means but you can’t please everyone. Unless of course, one doesn’t care about people dying, as long as it isn’t themselves.