If you look at the charges of Greenberg and that essentially nobody once ever referred to Gaetz as a suspect but rather "subject of" or "involved in" it becomes pretty clear what happened.
Greenberg was running a blackmail ring, or at least managing it, Matt Gaetz was the target of it. He started getting suspicious and went to the FBI.