First things first: remember that when you buy something on g2a, you’re not buying from g2a, but from sellers that sell their stuff on this marketplace.
Next: you’ll notice that game keys (Steam, Uplay, Epic and so on) are noticeably cheaper than on these platforms. Is that wrong? No. Why is that, though?
This is because sellers are often wholesalers or retailers. Where do they get their games from? They purchase the keys in bulk from developers and publishers directly. Since they’re buying massive numbers of keys at once, they often get good discounts. This is why they can offer lower prices on g2a and similar sites.
Other sellers are just regular people who have some unused keys they want to sell. The lower the price, the faster they’ll get sold, which is why such keys are so cheap.
In other words: these keys are legit, even if they seem surprisingly (maybe even suspiciously) cheap, as they come from devs and publishers, giveaways and so on.
Also, g2a verifiers sellers when they register and create new offers, so you can’t just appear there anonymously, hope to, I don’t know, make up some Steam codes and sell them before someone figures out that something’s wrong.
There’s one more thing that you should pay utmost attention to. While a large portion of keys are their global versions that you can activate anywhere in the world, there are keys that come with regional restrictions. Some can be activated in, say, Russia, others in South America only, and there are keys that work only in the EU. Read the descriptions and product names carefully to make sure you’re buying the right product for your region. There’s even an availability check on the product page that’ll tell you if you can play a game in your country or not.