Much as I personally prefer GitLab, GitHub had a bigger customer base back then than GitLab has now. GitLab may be gaining market share, but it’s mostly eating Atlassian’s portion of the market and not GitHub’s. It’s plausible GitHub undervalued themself in the sale to Microsoft of course, so a careful look at the numbers is required to evaluate the valuation, but the value comparison isn’t a great sign to me.
Separately of course, GitLab might be in line with the valuation of companies on the stock market in general which have ballooned heavily in recent years. Whether that's a bubble or permanent inflation in stock prices then becomes the relevant question to answer, I suppose.