Meanwhile clones of AK-47 and MP-38 have no function other to kill people
The most important feature of any military rifle is its reliability and ease of maintenance. They keep working even if they get dirty, or are fed bad ammunition. If they do malfunction most problems can be solved in the field without tools. If a part needs to be replaced that can usually be done by the user by hand without tools.
This is why the AK series is so popular, not its automatic capabilities but its reliability and simple maintenance.
Ditto the AR15.
I dispute that this level of reliability and simplicity isn't valuable to the civilian market. Having an easy to maintain rifle that I can repair myself without needing a gunsmith is useful.
Military rifles also tend to be the safest to operate because they have been so thoroughly torture tested and any design flaw long since corrected. So they are less likely to explode in your face when you pull the trigger, or if they do explode, their design directs the force of the blast away from your face. These considerations, and more importantly, this level of testing, does not happen outside the military.
The automatic fire on some is a secondary concern. Civilian designs simply do not have the same level of debugging of their operation.

