It's not. It is not anything specific against for example the US. We have many consumer protection laws. Has nothing to do with the US.
That's the most backward way of trying to prove a point (without even addressing whether DMA and GDPR are a good thing or not, just based on that...)
You might say that's proof of it being unfair, but can you name a EU company which should be one? I can't really think of one, US companies are just so much bigger on the internet, even in the EU.
Looking at the other law you mentioned, GDPR, there are many EU companies receiving GDPR fines.
The law is written to arbitrarily tax US "gatekeepers" while explicitly excluding EU gatekeepers. Booking.com is another, also carved out.