Some agencies will pay companies to perform digital forensic work necessary to offer data. Even administration of the job of forensic work, ie PM level assistance can be compensated.
This includes if a company is served a subpoena and a warrant to provide certain data.
Billing can be good, certainly valley-competitive.
Iirc, this has been well covered as a thing that happens at big tech companies, including fb, but it also can apply to small ones.
I don’t know how law-enforcement is funded there, but presumably they do use contractors and service providers.
If their alternative is to pay a contractor who has no familiarity with your system, it would be preferable to simply pay the person who knows what they’re doing and be done with it.