Although most states give their electoral college votes to the presidential candidate that wins the most votes in the state, they are technically free to assign those votes based on whatever criteria they want. So, the national popular vote campaign is trying to use this function to essentially replace the arcane and undemocratic electoral college system with a true, national democratic election.