The riddler is actually the good guy.
Single handedly took down Gotham’s most corrupt officials.
Brought awareness to Gotham’s corrupt for real change.
Sure the guy was unhinged, but wouldn’t you be if you were brought up as an orphan in an burned down orphanage in a crime riddled city?
Sometimes you need a bit of shock value to bring real change.