For the same reason we were allied with Joe Stalin. Iran is worse.
Iran is the lesser evil compared to the Saudis. Every since terrorist since 2000 has been Sunni and Saudi paid. The Wahabbi-Saudi alliance has radicalized Pakistan, Indonesia, Muslims in the West etc.