This is an important part of VC strategy. VCs invest in, say, 10 companies, expecting 8 to fail outright. The 2 winners need to make up for the 8 losers. But the investor can't see into the future to figure out which are the 2 winners. Pro-rata rights give them some optionality: by the time the A round happens, it'll be clearer to the investor whether they should have plowed more money into that company, and pro-rata lets them do that.
The problem for YC is that each YC batch has 30-50 companies in it, most of which will fail. When those companies go to raise later rounds, new investors want to know whether YC believes in them. If YC exercises pro-rata rights on just some of their companies, the ones that don't see the exercise are damaged goods. So instead, YC is committing themselves to pro-rata all their companies (this is a lot of companies) so long as they can afford it.