This is a good tip to avoid persistence. Lots of exploits won’t survive a reboot and so the target would have to be exploited again.
For a very recent example of this, see the NSO Pegasus scandal from the past couple of weeks.
A reboot "unloads" the malware (until the adversary sends another payload, anyway.)