The whatever you refer to is natural ability. Two people from a bootcamp turning out to be immediately useful developers says more about the people than the bootcamp which is what the original point was about.
Maybe it doesn't apply at the bootcamp level. But there are certainly things I could be very motivated to learn but I'm pretty sure I'd really struggle with serious math/physics even if I put a lot effort in.