Yes, of course passion isn't required for a paycheck. You're preaching to the choir who are already receptive to that message and nod in agreement.
The issue is that some of the others in the industry who you don't control such as founders, hiring managers, co-workers, etc do care about passion and use it as a important factor to hire you.
To answer the inevitable "pharmacists don't dispense medicine on the weekends as a fun hobby so why are programmers who don't have side-projects being discriminated against?!?" ... it's because programming (unlike pharamacy) is an activity that many genuinely enjoy doing for fun on personal time. For those, programming is similar to expressing a creative outlet like playing guitar. It's inevitable that some people prefer these types of programmers.
Hiring preferences for those with passion are not unique to computer programmers. Here's engineer Ben Krasnow (of popular channel Applied Science) explaining how a "personal portfolio" helps him stand out and get good non-programming jobs:
- deep link and watch for ~30 seconds: https://youtu.be/ihbYtxaEDSk?t=248
Another Ben K video covering the same topic but mentioning Valve & GoogleX and choosing between prospective candidates:
- deep link: https://youtu.be/4RuT2TlhbU8?t=112
So, if you're an electrical engineer getting angry at the world because employers shouldn't "expect" you to design circuits for fun on the weekend, don't be surprised if they hire Ben instead of you.