One of the best sonic games ever made, sonic mania, wasn’t made in-house by sonic team, but a handful of fans making fanwork.
Sega’s choice to treat their fanwork seriously and make them second-party developers rather than shutting them down was not only an immeasurably good thing for both the project and its fans, but a measurably, handsomely profitable move for Sega.