I am not a lawyer, but I suspect prior art is a defense.
Companies pool their patents together, promising not to sue each other over patents, in order to collectively defend themselves against trolls.
but instead every company chooses to defend themselves by deluging the patent office with more crap, and collective abuse of the patent system to patent stuff even the “inventor” thinks is obvious becomes accepted totally normal behavior.