When the president signs the bill, it becomes law. If the president refuses, the bill is vetoed, but if a two thirds vote by Congress, it can still become law.
Because it includes the views of many people.
Using election results for public opinion would be a misuse of the poll and the election. Elections really don’t reflect what a person thinks, but only show who they voted for and not why.