From the news article:
> The disorders were significantly more common in COVID-19 patients than in comparison groups of people who recovered from flu or other respiratory infections over the same time period
They controlled for the world situation, lockdown and even being sick with another illness. Of course the knowledge that you have covid could be stressful in itself, but that's also a result of covid.