They could have easily crammed the Steam Deck full of stuff to make it hard to use for piracy - locking down everything, making it usable only to play games you legitimately own, force you to go through who knows what hoops in order to play games on it. That’s what Nintendo or Apple or most other companies do.
But they didn’t, because they realized they didn’t have to. It’s 100% possible to put pirated games on the Steam Deck - in fact, it’s as easy as it could reasonably be. You copy it over, you wire it up to Steam, if it’s a non-Linux game you set it up with Proton or whatever else you want to use to run it, bam. You can now run it in Steam just as easily as a normal Steam game (usually.) If you want something similar to cloud saves you can even set up SyncThing for that.
But all of that is a lot of work, and after all that you still don’t have automatic updates, and some games won’t run this way for one reason or another even though they’ll run if you own them (usually, I assume, because of Steam Deck specific tweaks or install stuff that are only used when you’re running them on the Deck via the normal method.) Some of this you can work around but it’s even more hoops.
Whereas if you own a game it’s just push a button and play. They made legitimately owning a game more convenient than piracy, and they did it without relying on DRM or anything that restricts or annoys legitimate users at all - even if a game has a DRM-free GOG version, owning it on Steam will still make it easier to play on the Steam Deck.
If you think that the goal of anti piracy measures is to be an impenetrable barrier, you’ve completely misunderstood the assignment.
The idea isn’t to be literally impossible, but to be so hard to do that even the moderate tech heads won’t bother.
The likes of Nintendo don’t care if 12 people are pirating their games, what they want to prevent is situations line the PlayStation Portable, where almost everyone was cracking that fucker wide open and there was a shit ton of piracy.