I think it depends a lot on the individual cat? In my experience, their attitudes towards humans can vary quite considerably.
Some are more aloof and independent and see their human as a source of food like you say.
But then I think about our current cat. He’s a rescue who’s clearly been through a lot on the streets. When I come home, he just wants to climb onto me and head butt and do that slow blink thing. He wants this more than food, even, which is a first for me.
When we were adopting him, we fostered first for a couple of weeks before he had to go in for a surgery, and in the week or so when e was boarded, the staff said he was wailing every night wanting to go home. So he had clearly developed an attachment to us that transcended simply wanting any human who provides food and shelter.