I don’t think everyone agrees on that. It’s just that the government has been able to legislate that as technology evolved.
That being said many legal scholars say the state militia was intended to be the defense against tyranny not individual citizens because there were government led crackdowns on rebellion under Washington and other presidents from the earliest days of the republic. State militias have the full range of weapons