They use licenses imtended for installing multiple servers and sell them as single licenses. the problem is that the usually sell the keys directly and don't convert them to single licenses. If they would it would be more legal. Just having an key doesn't mean you have an valid license, this makes it complicated
You can get Windows 10/11 serials on eBay rather cheaply. How they source them is beyond me. Maybe they buy them in bulk at a discount and then resell them. So far I've had no problems with Microsoft detecting and then revoking my licenses.