First, it acknowledges that there are two ways you can get work out of a loop. The first is to spend potential energy, no surprise. But the second is to let disorder increase. Not forever; ideally only in the controlled circumstance of your imaginary heat engine. You can get a lot of work done if you freely let disorder run its course. You will have to pay it back later, but it will work.