Why collapsing nodes will lose knowledge about the variables? I'm not talking collapsing to function, just normal collapsing option

What I’m thinking is that when you collapse nodes you just hide them from view in a sub node. But it appears they just behave like separate functions that need access to input variables.

they can’t “see” the variables. This just breaks everything. I can’t see the reason to even use the collapse nodes.

Is this a bug or is how it should be?