This is not even close to a new phenomenon or a new complaint. The main difference is that almost everyone carries a camera all the time now, the marginal cost of taking additional photos is basically 0, and sharing pictures is easier than ever.
Vanity has always existed, and as much as it's a dirty word in many's eyes, it does have a purpose.
However, for whatever reason (there are tons of reasons and probably all of them play a part), it's more normalised and common than it ever has been before, for better or worse.
I can say with confidence that only rarely were people taking photos of only themselves 15 years ago. Today its a regular occurence.
Whether that is the vanity that has increased, the ability and proliferation of photos that has increased, or just the normalisation of the expression I don't know, because as other have said, vanity has always existed, but certainly selfies themselves are way more regular and a self-interested culture appears more normalised.
Perhaps through all of time people would be stepping on an anonymous soapbox had it existed, but it's only available today?
People laughed at selfies only 5 years ago, thinking it was a bit self-interested, now it's a normal part of the culture.