Stockfish is licensed under the GPL - that means you can use it freely, but if you distribute the code you must pass that freedom onto the recipients, by also giving them the source code, and informing them of their rights and responsibilities under the GPL. You don't have the right to deprive your users of the freedoms you yourself received.
By using GPL code, you accept these terms.
If you violate these terms, the GPL states that you *permanently* lose your rights to distribute that source code. That's what's alleged to have happened here. The Stockfish devs are saying Chessbase have violated the GPL and therefore no longer have the right to distribute the code or any product derived from it.
Again, that's the license they accepted when they used the code. No one forced them to. They could have approached the developers and asked to buy a different license. Or written their own engine.
Unfortunately some companies think they can get away with this kind of abuse. They take, but they don't give back.
Two big names in the chess world do battle:
https://stockfishchess.org/blog/2021/our-lawsuit-against-chessbase/