Huh, well kugelkj does bring up an interesting interpretation. Maybe cover from allies is only meant to apply from ranged attacks. He's certainly right that the "Creatures and Cover" section applies specifically to ranged attacks.
But, determining cover section is not nearly as clear.
PH(p280) Determining Cover: To determine if a target has cover, choose a corner of a square you occupy (or a corner of your attack’s origin square) and trace imaginary lines from that corner to every corner of any one square the target occupies. If one or two of those lines are blocked by an obstacle or an enemy, the target has cover. (A line isn’t blocked if it runs along the edge of an obstacle’s or an enemy’s square.) If three or four of those lines are blocked but you have line of effect, the target has superior cover.
Emphasis mine.
The first point is that it doesn't explicitly say that you only determine cover when you make a ranged attack. It would have said "to determine if a target has cover
from an attack" or something along those lines. That's not to say that that wasn't their intention, but just looking at it, nothing here comes out and says not to determine cover for anything else besides ranged attacks.
However, the second point is that, in the section I bolded, it
implies that you are only determining cover as the result of an attack. "your attack's origin square" If the rules were meant to be for
anything, namely stealth, then I feel that would have been worded differently, without the assumption that an attack is being made. Something like "choose a corner of a square you occupy (or, if you are making an attack, a corner of your attack's origin square)"
The stealth errata for maintaining cover, however, makes it a bit more confusing. Saying 'you can't maintain stealth from the cover of an ally' implies that it was possible until they specifically stated you couldn't for the purposes of stealth. That is, if cover from allies only applied for ranged attacks, then stating that you can't stealth behind allies is pointless/redundant. If it only applies for ranged attacks,
of course you can't stealth behind them. The clause could be there because it
was possible until the errata, or it could be there for clarification (in which case redundancy isn't necessarily a problem.
I don't think allies should provide superior cover either, but it's certainly not crystal clear.