https://www.open990.com/org/020716277/the-lebron-james-famil...
I'm a nonprofit fundraising professional, and I could probably talk about all the reasons why that is a horrible idea for 2-3 hours straight without repeating myself. I mean, at the very least, it's a bad idea for the same reason that exposing all the financials of every individual, or all other organizations, with the added benefit that you'd be opening people up to harassment for supporting certain social causes or belonging to certain religious groups. You might as well start a government mailing list called "hate crime targets."
If you think there are a lot of non-charitable transactions occurring using charities as a front, it would be a way better idea to just have the IRS audit more 501c3 orgs.
If you are trying to decrease fraud, it would almost certainly make more sense to audit wealthy individuals and for-profit corporations far more often.
There is information in people's finances that should be 100% private. What if an employer looks at the financials of someone applying for a job and sees they claimed $100k in medical expenses last year because they had cancer? Companies will do that if they have the ability, and people will lose jobs because of it.
It doesn't matter if you make it illegal. I worked a recruiting agency for a while, and illegal hiring practices are incredibly common.