That's not even the big reason; microtransactions are often very lucrative (as much as I tend to dislike them). The main thing is just the COVID hangover and general economic downturn the world has seen.
- during the height of COVID, people had more time and money to spend on gaming. While brick and mortar stores and quite a few service industries suffered, the gaming sector was seeing record profits and growth.
- investors were also investing a lot. Crypto was booming, interest rates were really low, and a lot of investment companies were just throwing money around as a result. With gaming companies not only not being hit too hard by COVID, but also thriving during it, gaming-related investment shot up. See Embracer Group for the prime example in gaming.
- like good little capitalists, these companies saw all the extra money coming in and tried to grow their companies - more staff, bigger projects, etc. They scaled up to levels that were sustainable for their newfound income and investments.
Now, not only have all of those factors been reduced, they've actually gone the other way. Consumers have less disposable income than they did pre-COVID due to rising cost of living. Investment companies can't just throw their money at absolutely anything and still turn a profit because the interest rates are much higher. And the companies all found their expenditure and growth unsustainable once the money dried up, which is why we've seen so many layoffs in gaming already this year.
On top of all that, we've seen game budgets just go up and up and up, to the point where some games are costing upwards of $200M to make. The price of games hasn't really budged that much, which means the only way for the increasing budgets to be sustainable is for sales and microtransaction spending to keep increasing. Obviously that's not happening, and until some novel tech comes along that draws in new gamers - like the Wii did, where people who didn't care about games at all were interested in getting the Wii for Wii Sports, Wii Fit, etc - I think gaming's not likely to attract too many new people.
Microtransaction scandals and less and less innovation in the AAA(A) space obviously don't help, but they're not the big reasons why the industry has hit hard times.