This is not a fault.
The fan switches on automatically to drive moisture away from the coffee machine. The duration for which the fan remains on depends on how the coffee machine is used.
The fan is running even though the coffee machine has already been switched off.