This is similar to those people who charge $25 to download Firefox. Is it legal? Yes. Is it ethical? That's more dubious.
Also, did you read the article:
"They took the text version, stripped off the headers and footer containing the license, re-wrapped the sentences, and made the chapter titles bold,"
That does not exactly sound like strenuous editing and curation.