I was going to reply that localStorage persists even when entire browser is closed, whereas cookies do not, but i cant find the docs to confirm it.
One use case would be somebody logging into a sensitive site from a public computer and expecting the session to end when the browser is closed.