I²C benutzt die Pins 4 und 5 - wundert mich also nicht sonderlich, daß Das dort auch funktioniert.
Der ESP nutzt Software I2C, sollte also mit allen normalen IO funktionieren.
4 und 5 ist nur der Default.
Und damit, eigentlich ohne besondere Bedeutung.
I2C (Wire library)
Wire library currently supports master mode up to approximately 450KHz. Before using I2C, pins for SDA and SCL need to be set by calling Wire.begin(int sda, int scl), i.e. Wire.begin(0, 2) on ESP-01, else they default to pins 4(SDA) and 5(SCL).
Da komme ich mir doch ein klein wenig verarscht vor - musst Dir von mir das Pinout des von Dir SEIT JAHREN verwendeten Chip vorbeten lassen und bekomme ein 'Schwachsinn' - nun denn.