The pandemic made those companies earn more because everyone is at home and has nothing to do but to watch on YouTube, buy things on Amazon, and use Facebook to browse and communicate with other people.
But also the good news is that these websites also helped thousands of people to make a living during the pandemic. More orders through social media and businesses were made and that's also the other side that we must appreciate with their rise.