>why are machine guns illegal?
They're not "illegal". They're unconstitutionally regulated by the National Firearms Act and require an extensive background check and a $200 tax stamp and/or a class 3 Federal Firearms License to buy and sell.
The NFA needs to go, and ATF needs to be the name of a chain of convenience stores.