The IRS does in fact compare the data you send them to the data they have. Presumably the IRS, famous for it's computer system, isn't hand-checking every return.
The government does exactly that for the majority of tax residents in most countries in the world. US, with its Byzantine tax return system, is an outlier.