They didn't even have to legally mandate it, "suggestions" were made that certain particularly rabid newspapers would start publishing damning articles about which ISPs weren't filtering out paedophile material. Filters were essentially in place as far back as ~2007.