This is not new. This age requirement went into effect in 1992. The men's team is U-23 with 3 (not 2) older players allowed. There is no age restriction for the women.
FIFA trumps the IOC when it comes to soccer. They pushed this age restriction for the men because they didn't want the Olympic soccer tournament to rival the World Cup, or the other regional (Euro, CONCACAF, CONMEBOL,...) championships.