Classic presidential move.
If things are looking bad for you at home, just lob some missiles to distract the public. Nothing gets approval ratings up like a good bit of military action.
Same goes for Macron and May. I'm sure they want to look tough as well.