Why?
Because, and this is purely hypothetical (lol), an opponent could try and convict politicians with spurious charges to get them out of power.
Singapore’s ruling party loves this tactic. Political opponent is charged with defamation, and if fined more than $5,000, they are no longer eligible to run for office.
It’s a commonly used political weapon which is why most democracies offer immunity.