To my knowledge piracy is mainly a problem for games that target teenagers, who after all have limited money. Specifically if those games have short playtimes and no replayability. So teenagers are motivated to get them, if nothing else simply so they can talk about them with their peers, to avoid social stigma, but they often cannot actually afford the heap of games they would like to have but could easily manage to play and are motivated to play.
---
For my prefered genre, roleplaying games, piracy to my knowledge is no actual problem at all. The players are generally older, so they have money, and a roleplaying game that lasts like 40 hours in the first walkthrough, such as Vampire: The Masquerade: Bloodlines (VtMB), is short for this genre.
Or a single walkthrough of Baldurs Gate 3 (BG3) easily takes around 150 hours for the first walkthrough, maybe even 200. And the game has very high replayability. So, unless you are enormously short on money - why would anyone want to pirate BG3 ? Granted, BG3 is probably one of the longest roleplaying games ever. The base game BG3 is easily as long as its two predecessors including their respective addon (Baldur's Gate with Tales of the Sword coast, Baldurs Gate II: Shadows of Amn with Throne of Bhaal).
And despite its by comparison to BG3 very, very simple rulesystem VtMB the later also offers quite a lot replayability. Especially Malkavians have their very own dialogues, which are much harder to follow than regular dialogues, and Nosferatu have to be played a lot different than other clans, for they cannot be seen by regular humans (except prostitutes and questgivers). Additionally everyone installs Wesp5's Unofficial Plus Patch and then gets for example histories, which make the individual clans even more unique to play.
Its even "worse" for others of my favorite games, such as Baldurs Gate 1+2, or Vampire Bloodlines, or Star Wars: Knights of the Old Republic. These games hardly cost anything now anymore, far from a full price that BG3 demands. So why would I ever not want a DRM free legal copy of them ?
And when there was a MMORPG that actually had me as the target market, Vanguard: Saga of Heroes, I played it for the full time of its runtime, for seven years. Which means I spent about 1,500€ on that game alone - more than on all other games ever combined. Though obviously with a MMORPG like that
Plus of course you want to support that game developers develop more such games that you love.
---
And by the way, IMHO piracy shouldnt be a problem for other types of games either. PlayerUnknowns BattleGrounds (PUBG) for example basically can be played exclusively for years, because your opponents are other players, so unlike offline games the challenge is always high.
PUBG is nevertheless free to play. Personally I think they could easily run that game as a paid game with monthly subscription, kind of like a MMO, and this would massively discourage cheaters, too, so it would be worthwhile for more than one reason, too.
The only problem with that approach is of course teenagers. Thats after all the target market for games like PUBG. To the point that people of my age (over 50) dont have much point in playing these, because these young kids just slaughter you with their superior reaction times from their young brains.