It's not "ungrammatical" - it's just extremely "condensed" emphasis.
there are two things, or [there are] two occurrences of a thing, but there's STILL ONLY ONE THING INVOLVED, even if that same thing occurs more than once
Note that the context of the above is we are able to identify (two things, or two occurrences of one thing) as being "different, distinct". It's an unusual context that turns on the fact that in English it's perfectly possible to say "thing1" and "thing2" are the same [kind of] thing from a semantic perspective, even though literally and/or physically they're separate / distinct entities.
Note that citation says otherwise it would make no sense to say [the cited text]. What this means in context is that it does (or at least, can) make sense to say that.
This "syntactic device" is quite unusual, so I can't think of any similar examples that might actually have any real "currency". From the learner's perspective, it's really not worth attempting to "understand" the syntax with a view to using it yourself, since you'll probably not be able to do so successfully. Just accept that the construction is "valid", and move on.