they have an enzyme involved that only activates at temperatures below their core body heat, so only fur in places that stay relatively cold get pigmented. canine tails getting darker at the tip might be a similar thing, just a coincidental trait in a common ancestor that never got selected against (or just coincidentally mutated away) except in painted dogs and maned wolves.