It’s because the times aren’t the same. Maybe same unit but different context so they can’t be canceled.
It’s like saying you work 8 Hours/day (Eight hours per day). Both are units of time, but their context is different and their combination forms a new meaning beyond the units.
1 KWh is using 1KW for one hour. Because of demand pricing the time you use that KW is important. Like in terms of energy grid using a whole ton of power for one minute vs same total over a long time is different and important dispite being the same amount of energy.
Edit: some phrasing
I think buying Eggs is Illegal. (Bad Trans Egg joke)