I can't find a reason why invisible and insubstantial creatures do *not* provide cover, but this seems ridiculous.
PHB says: When you make a ranged attack against an enemy and other enemies are in the way, your target has cover.
For example:
-------------
R . . . (p) P
-------------
R =...