A couple years ago, the studios cut ties with Louis C.K. in light of the sexual harassment allegations against him. Five women spoke out about the comedian exposing himself and masturbating in front of them without their consent. Louis C.K. later confessed to committing these acts, leading to many of his connections with Hollywood being dropped, such as the home network to his five-season series Louis, FX, and his movie I Love You, Daddy.
Article source: https://www.cinemablend.com/news/2474610/why-patton-oswalt-was-the-perfect-replacement-for-louis-ck-according-to-secret-life-of-pets-2-director