Paying taxes is a necessary evil for everyone.
necessary evil
idiomAn unfavorable thing that must be done or accepted, especially because the available alternative courses of action or inaction would be worse.
The manager explained that the budget cuts were a necessary evil to keep the company running.
While many view the strict new regulations as a necessary evil, they remain essential for maintaining safety in the industry.