IK competed in line the rules that were in place at the time.
Timeline:
1999: sex testing removed despite the overwhelming majority of women being in favour of it remaining.
2009: DSD athletes begin to appear in the female competition in athletics
2019: DSD ruling restrictions put in place for certain events in athletics.
2021: IOC state they will support trans athletes and athletes with sex variations to compete in sport in ways that affirm their identity and well-being.. but leaving the exact rules up to the individual International Federations.
2022: Led by swimming, the international federations for swimming, cycling, athletics and rowing (and others?) introduce terms about 'male puberty' into the restrictions around the female category.. protecting the XX category.
2023: International Boxing Association are relieved of the responsibility for Olympics by the IOC and the IOC will directly oversee boxing rules in the 2024 Olympics. https://olympics.com/ioc/news/joint-paris-2024-boxing-unit-ioc-statement
2024: The Paris Boxing Unit Rules define eligibility as based on passport, as it has been for the previous games.
2024: IOC press guidelines require journalists to refrain from speculating about competitors sex / gender.
The IOC wanted trans and DSD athlete's to compete in their category of identity. They knew the other major sporting federations had clarified and tightened up eligibility criteria. They choose to leave the criteria for boxing based on passport. They did not insist that the other sports follow the lead of swimming, athletes, cycling et al.. .. notably football / soccer.
It is an indefensible position but they defended it to the bitter end.