Bi-directional charging is by no means a universal feature of USB-C.
However, where both connecting devices support USB PD bi-directional charging - and have a rechargeable battery (e.g. a PowerBank) - this can lead to unexpected discharge of a device instead of receiving charge from the expected power source.
When connecting to a regular USB-C Power Source that does not include a battery, USB PD merely negotiates the most appropriate power profile supported by the connected devices - and charging operates in an easily predictable manner. Where both devices support bi-directional charging, the sequence of wired connection matters; until encountered and understood, bi-directional charging over USB-C can lead to some unexpected surprises.