From this opinion piece:
When it comes to insane bans on recording police and public officials, the granddaddy of them all has always been Illinois’ eavesdropping law, which made it a federal crime to surreptitiously record any public official, even if they were amongst the public while performing their duties.