No problem. A STEM OPT rule is a payback from Congress to the rich and powerful higher education lobby here in the United States that allows colleges and universities to subsidize their bloated budgets by enrolling lots of smart and motivated foreigners as full tuition paying students, letting said students work in the US without a HB1 Visa while in school. However, in order to not violate the equally rich and powerful protectionist lobbies, the STEM OPT rules have a limited duration.
So, we educate and train these individuals and then kick the ones who cannot afford a good immigration lawyer (another equally rich and powerful lobby) out of the country, subsidizing the IT industries in their homelands and perpetuating the drive to outsource high tech labor outside of the US.
It's a brilliant strategy that relies on central planning over free markets to control the distribution of human resources.