I2C Grove connector

You are perfectly right, I managed to follow the path of the I2C SDA and SCL pins of the Grove connector and they lead to two analog swithes (TS5A3157) controlled by a GPIO of the STM32 (pin 28).
It means the system has a way of choosing who is in control of the I2C.
By the way, an identical method has been implemented to manage the IC controlling the battery charge.