You lay off hard to instill fear and legally-depress everyone's wages, but you give good severance so that when you inevitably want to hire people in the next two months (as GitLab is likely to do), they're aren't too terrified to accept your offer because of all the layoffs you just did. 7% of staff as "layoffs" comes out to about 150-ish? people, but they are also currently hiring for over 100 open job position at GitLab on job boards right now. GitLab is also up 74% year-over-year in quarterly revenue, and had their highest sales quarter ever just four months ago, according to their own PR department (https://ir.gitlab.com/news-releases/news-release-details/git...)
It's a pretty transparent process, frankly. Lots of companies are doing 'fake layoffs' (layoffs they don't need, done solely to appease the executive class, who strongly desire a recession), but unfortunately for them, the truth is that the economy isn't anywhere close to a recession, so they simultaneously have to keep hiring open, to keep labor incoming, to keep up with all the new business growth or increased sales they're experiencing right now.