It seems you have a point, despite the fact the query doesn’t have any filter about objects having a name or not. If this confirms, I’ll open a bug report on Overpass GitHub.