I had the same question!
Some years ago, I had a large "non-dividend distribution", and the brokerage didn't say anything about it except to report it in Box 3. Fortunately, I was able to keep track of my cost in that case, and report part of it it correctly as a capital gain.
In 2019, I had a different "non-dividend distribution" that, as far as I can tell, did not exceed my basis, but the brokerage reported it on 1099-B, and instructed me to report it as a capital gain. I have no idea why, because as I said, my basis was nowhere near zero.
I'm sorry to say, in spite of all the work I do to try to follow the numbers, the 1099-DIV is still something of a black box to me.