Of course you can get your overpaid taxes back by means of the tax return - but a lot of people don't have the money or time or knowledge to do that.
The overpaid money is to the government if requested back, an interest-free loan - if not requested back, a gift.
If the government would now tell the IRS to fill out the form for you - then there would be significantly less income - due to more accurate taxation.
This is not true at all. You decide how much money will be deducted from each paycheck by filling out form W-4 and similar state forms. You can make withholding adjustments after each paycheck.
IRS will penalize you if you "prepay" too little (for instance, if you owe them more than 10% of your total tax), but there nothing that prevents you from not giving them interest-free loan.
If you don't match, then the IRS will either audit you or send you a proposed correction (along with penalties); i.e. once you fail to match, then the IRS is allowed to show you the correct calculations.
This is an incredibly convoluted system.