Gun rights question

If the federal government is allowing known terrorists to enter our country illegally and then when known allow them to roam free for more than a year why are they so set on preventing citizens from easily buying guns?