In Gotham why are Sofia and Oswald friends

Sofia and Oswald are friends in Gotham because they share a mutual desire for power and control in the criminal underworld of the city. Both characters are cunning and ambitious, and they see each other as valuable allies in achieving their goals. Additionally, they have a history of working together and have developed a level of trust and respect for each other's abilities. Despite their differences and occasional conflicts, their friendship is based on a common goal of maintaining their influence and authority in Gotham.