It's not just economists. I recall professors in other departments were contacted for "consulting" work. General Electric offered one political science professor a lucrative hourly rate (I think it was $650/hr) to consult on a legal case for the Dabhol power plant. This was years ago, so surely the fees have gotten larger. The professor turned it down for other reasons but said it would have been "easy money".