I think this view is very wrong. Lots of people take pride in the fact that they're doing some socially valuable job. That might not be their primary motivation but it's an important one.
A lot of people get into jobs to help people, or help society. But to help "the economy"? I'm skeptical (in the sense of doing a day job because markets need it, not a job that's making the economy as a whole more efficient). If the market doesn't pay for a job, then "the economy" doesn't need that job.
Most of those are in the service, police, fire, or rescue. being a delivery driver (pilots are a form) and making such statements is just an odd romanticism or at least a bad attempt at making the job seem more important than it is.
You're confusing fungibility for importance. While one particular delivery driver or pilot may be less important than one particular "rockstar programmer," society is much more reliant on delivery drivers and pilots as a group than on programmers. That may change with automation but we're not there yet.