It really isn't the same thing. You see, America and Germany were at war. Nobody cares about IP law in the middle of conflict, both sides actively try to reverse engineer each other's captured tech as a way to get a leg up in the conflict. These "lesser" disputes don't matter at the time because war is the most extreme state of relations two nations can have with one another. All of that gets hammered out after the war is over. And often times assets like patents can be invalidated as part of formal reparations. Which is what happened in WW1 and WW2. Germany lost and as part of being the loser they had to compensate the winners for the trouble of going to war. You can't bring back dead soldiers so they had to do so through other means. One way among many is to invalidate some patents so the victors can be compensated by your industry. Its really no different than being paid in cash, its just another form. The end result is the same, your economy gets to heal somewhat.
Russia is not at war with the west yet still thinks it doesn't have to be party to international agreements over patents. Any Russian companies that actually take him up on that will regret it long term because even after the sanctions end their products could be banned from the global market for violating patents and international treaties on them.