What’s the point of closing windows by double-clicking their top-left?

In Windows, you can double-click the top-left of a window to close it.

But why?

It's not intuitive. At all.

What sort of advantage is there by using this kind of behaviour for closing windows? I even happened to accidentally close windows this way.