When Richard J. Daley took office as the mayor of Chicago in 1955 he was determined to develop the riverfront and tasked city workers with finding where the sewage was coming from. They used the green dye to help identify the source of the waste.
https://www.npr.org/2022/03/16/1086988193/st-patricks-day-green-chicago-river