Well to be fair they have to enforce every laws and can't know them all off hand.
They deal with every kind of laws, not just firearms laws I would imagine (unless they are ATF or something).
I wouldn't expect them to be experts on environmental laws, or copyright laws either.
If there are too many laws for Law Enforcement Officials to keep track of, then how are ordinary citizens supposed to know them all?