The reason why it's legal is because these will only fit in a full auto receiver, which is the regulated part. But most semi-auto lower receivers can be converted to accept said full auto trigger group simply by drilling a single hole in the receiver. Which is also fairly trivial, given that you're drilling aluminum, and jigs are readily available:
https://www.newfrontierarmory.com/shop/m-16-full-auto-lpk/
The reason why it's legal is because these will only fit in a full auto receiver, which is the regulated part. But most semi-auto lower receivers can be converted to accept said full auto trigger group simply by drilling a single hole in the receiver. Which is also fairly trivial, given that you're drilling aluminum, and jigs are readily available:
https://www.newfrontierarmory.com/shop/m-16-drilling-jig/
If you ever hear references to the "third hole" in gun context, or see the meme linked below, that's what it is about.
https://i.imgur.com/HgPfXdl.jpg