That's why a group of private citizens does it, and sells the results to the government. You can do it too, if you want.
Explain to me where in the Constitution it has a carve out for creating an incentive for a private company to gather and collate that data, and then using tax dollars to pay for it.
Sure. The part where it says the government can't do it, and doesn't say private companies can't, and doesn't say the government can't buy it from private companies. The government didn't even create most of these at all - the company did it privately and then offered to the government to buy its services.