Threat Actors may impair command history logging to hide commands they run on a compromised system. Various command interpreters keep track of the commands users type in their terminal so that users can retrace what they've done.
This type of attack technique cannot be easily mitigated with preventive controls since it is based on the abuse of system features.