FY 2008/2009 were indeed a bit of outliers at the time, but since 2014/2015 it's getting worst and worst. FY 2023 had 483,000 applications for ~85k total slots.
The lottery is still a thing, but I vaguely recall that a few years ago they slapped down some of the foreign outsourcing companies that were abusing the system. I'm I remembering correctly?
H1B has a global cap, so there's a lottery. It's a completely different thing.
Green Cards also have a cap. China (and India in particular) are screwed. If you are from India and take your 1 year old baby to the US, it's likely – if nothing is done – that your baby will never get a green card. Child dependents lose eligibility at 21 years old; the current projections are pointing to much longer times than that.
It wasn't all easy though: All those extra H-1s didn't come with extra green card slots, so even an EB2 from Europe had a very long wait.
Companies like Tata and Infosys also required their H1B employees to grant them power of attorney, and they would also file fraudulent tax returns on behalf of employees.
As a foreigner living in another country, you represent your country. Depending on what you do, you may be opening doors or closing doors.