just in case someone might get confused so I want to clarify some things up, flag football is the one that is included in the 2028 Olympics, not football.
We will have both football and flag football in 2028 summer olympics.
That is a nice rule that only young players are allowed to play football. Otherwise if they allow all stars to participate, olympic games will be flooded with football fans, leaving rest disciplines without spectators or few of them.
It's FIFA that doesn't allow players over 23 years old (with three exceptions) to participate in olympic games, not IOC. That's because FIFA doesn't want there's a football tournament that can compete with the world cup.