The money exists and is given to the government, the difference is just whether the government should decide to give it to those who need it most, or whether it should be distributed equally.
The money is given to the government because the government levies taxes. The government could also choose to reduce the levies so that there's no surplus to distribute, and avoid choosing how to distribute the surplus.