The timing is easily explained from the perspective of the New Yorker's article publication and a want to do something visible to the contrary as evidence of a willingness to improve as a community.
Hence why the CoC is a whole lot broader in scope than anything Linus has ever done. It's more of a "while we're here on this subject and have everyone's attention, let's clean house a bit."