"GPL is not a legal license in the sense that one could be sued for not following it."
What the what?

Exceedingly incorrect sir.
Someone somewhere failed horribly for you to be left with this impression.
The whole point of the GPL is exactly and explicitly to employ the very same legal machinery and principles of ownership and copyright that protects commercial software and literature and artwork, to protect free software.
Breaking the GPL is absolutely breaking a real law just exactly like violating any other copyright.
Something like say quickbooks has terms governing your right to use it. The terms are you have to give them money, you can't redistribute any copies, you for damned sure can't *sell* copies, etc.
Gnucash also has terms. They are different terms, but they are the terms, set by the author(s), using the exact same legal machinery and principles as any other intellectual property.
It doesn't matter if you are violating quickbooks terms or violating gnucash terms, all that matters is that you are violating the copyright of the material.
Merely, probably no one has the time or money or motivation to go after someone violating gnucash copyright because it would be a lot of effort and essentially no reward, unless the offender is making a lot of money from it, like if it turns out quickbooks is actually the one stealing gnucash code. So, sure, probably you will usually *get away* with it, but that is just getting away with it. You can absolutely get sued at any moment, if anyone with an interest in the violated code simply finds out about it and decides it's worth their time to persue it.