Hamilton, Alonso and Vettel were those with humbler upbringings compared to most the rich kids on the grid currently. Riccardo was probably from an ordinary family as well, I think the town he's from was pretty small, so his folks can't be that well off, but probably had a very comfortable upbringing.
https://the-race.com/formula-1/billionaires-sons-only-mark-hughes-on-money-and-talent-in-f1/
Great link, interesting comment
..."All that said, it’s quite interesting that the last four pre-eminent drivers in F1 – Lewis Hamilton, Sebastian Vettel, Fernando Alonso and Michael Schumacher – are all from very ordinary backgrounds...."
Coincidence? A correlation that you shouldn't read too much into?
Here are the backgrounds of the rest of the current grid: (2020 season).
Valtteri Bottas – Father had a small cleaning company, mother was an undertaker
Max Verstappen – Son of ex-F1 driver Jos and quick karting racer Sophie Kumpen
Alex Albon – Son of sometime racer Nigel and Thai businesswoman Kankamol
Sergio Perez – Son of a fairly wealthy businessman and politician
Lance Stroll – Son of billionaire businessman Lawrence
Daniel Ricciardo – Father ran a medium-sized transport company
Esteban Ocon – Son of Laurent, owner of a small local garage
Lando Norris – Son of wealthy pension manager Adam
Carlos Sainz Jr – Son of legendary world rally champion Carlos
Pierre Gasly – Born into a motor racing family, but not believed to be a wealthy one
Daniil Kvyat – Son of Vyacheslav, a financial director with a Russian energy company
Charles Leclerc – Son of the late Herve Leclerc, former F3 driver. Not believed to be wealthy
Kimi Raikkonen – Modest family background, father a forestry worker
Antonio Giovinazzi – Modest family background, father a salesman
Kevin Magnussen – Son of ex-F1 driver Jan
Romain Grosjean – Son of a bank employee with a motorsports interest
George Russell – Son of small business owner Steve
Nicholas Latifi – Son of billionaire businessman Michael