The IRS doesn’t write the tax (revenue) code; Congress does. And the tax code is the result of countless lobbyists peddling influence on behalf of their constituents, all of whom are looking for a carve-out of some sort.
People like to use the IRS as a political punching bag and it makes zero sense to me. Their job is to explain the code Congress wrote in terms laypeople can understand, design the forms, collect and process the returns, send notices, and take enforcement actions when cheaters try to flout the law. People who don’t like getting taxed or are frustrated at the complexity of the revenue code should take it up with Congress, not the IRS.
As a side note, it’s also incredibly weird that some very vocal people have a problem with the IRS, yet are staunch defenders of police, even though the IRS has never beaten up or killed a single person for breaking the law.