Great question — answering as the UphillTech team:
I can think of 2 possibilities that would explain your old situation (neutrals capped off, but everything appears to work), but both of them are a big No-No and should be rectified. The fan and kitchen outlets took their neutral from another circuit. This is not allowed, because it can overload that neutral wire (causing a fire) and the supply and return currents for the fan and kitchen take different paths, which causes electromagnetic interference. The ground wire was re-purposed as neutral. This is not allowed, because the ground wire is only supposed to carry current when there is a fault in the electrical system. You should inspect the fan box and the kitchen outlet boxes to see where...
Full answer by Bart van Ingen Schenau: https://diy.stackexchange.com/a/331974 (CC BY-SA 4.0).
Need it done for your business? UphillTech.