Patents have value to the holders of the patents, but that does not mean their existence creates value to society as a whole. If they do not, then there is an open question as to whether society should continue offering to enforce them.
When people call patents valueless, they're probably talking with respect to society as a whole.
When people call patents valueless, they're probably talking with respect to society as a whole.