I'll spell it out: A lot of air force pilots in these countries end up being rich kids who do it because it's a fun hobby, not motivated soldiers.
Because many of these people see it as a fun hobby, they don't spend much time worrying about potentially being ordered to drop bombs on schools filled with children. It's rather unlikely that their government would order them to do so anyway, compare a list of countries being hit by Iran with a list of countries bombing Iran.
Air force pilots are the modern day knights of the sky. Also, up until WW2, which social class you were from determined whether or not you were going to be an officer or canon fodder so rich kids swooping their way into being captains is historically normal.
When you say, “these countries,” I imagine you include the United States, where politically connected youngsters like George W. Bush secured and then ignored jet interceptor training during the 1960s?