I believe they are requried to collect info by federal law. Blame McCain-Feingold.
While they are required to ask, there is nothing that says you have to answer then truthfully though as far as I know.
This has been a federal requirement long before McCain-Feingold.