Your comparisons are completely irrelevant. The offenses and the laws used were different.
She's been convicted according to a law (Sapin II), voted after the cases you mention, in order to better fight corruption. According to the law, the inegibility sanction is mandatory, and not any more optional as before. The judges are not allowed to decide otherwise.
As she was an autocratic party leader, she was deciding and giving written instructions about how the money was spent, who should be recruited, etc.. She did not leave it to party executives. That's why she was convicted, not as party leader but as the person who directly gave orders to fraud.
Executives from a party supporting Macron have been convicted in 2024 for exactly the same offense, according to the same law.