do (someone) a service

idiom

Definition of do (someone) a service

: to do something that helps (someone) The journalists did the public a service by exposing the corruption.