When you first Mount your external drive, MacOS copies the Directory into RAM memory and marks the copy of the directory remaining on the drive as "checked out" indicating it is no longer the latest version. Then MacOS can make rapid file transfers, without having to re-write the directory after each transfer. The copy in RAM becomes the accurate copy.
Ejecting or un-Mounting the drive correctly copies RAM memory Directory back to the drive and makes it 'checked back in'. If your computer crashes or you pull out the cable before the Directory from RAM memory is "checked back in" by copying to the drive, you will later get the message "drive not ejected properly."
Many older Bus-powered drives do not elegantly fall back to the modern standard of transitioning to USB standby power while the Mac sleeping. Because the drive is not transitioning properly, dropping its USB power means it disconnects, rather than Ejects.
When the drive reconnects, the Mac sees the drive as improperly disconnected, and the Directory on the drive is "Stale" This can generally be fixed with Disk Utility repair/first-aid.
The long term fix is to provide stable external power for a drive that can not transition elegantly through computer sleep, or be prepared for trouble if the drive is left connected when the computer sleeps. Or, modify computer sleep conditions (like never sleep).