It’s physics, and pretty well explained by @Killing Floor
A vibrating string, fretted or open, has contact points on each end; nut & bridge or fret & bridge on a bass. Whatever the end points consist of, they both have a resonant frequency, and in the case of a bass, the two end points are attached to each other through the neck & body, so they might have a common resonant frequency. If one or both end points have a resonant frequency very close to the frequency of the vibrating string, or a resonant frequency very close to a harmonic of the vibrating string, the end point(s) will also vibrate when the string is plucked. If the end points vibrate, they will absorb the energy of the vibrating string & the vibration of the string is greatly dampened or mostly stopped.
An example of the energy absorption has been experienced by about anyone who has operated one end of a jump rope. If the other end of the jump rope is tied to something solid, like a fence post, you can swing the rope well. If the other end is tied to something not so solid, like the wire between two fence posts, you can’t swing the rope as well. It takes more of your energy to keep the rope swinging because the movement of the wire is absorbing the energy you are applying to swing the rope.
Pretty much every bass, and other stringed instruments, have some degree of “dead spot” somewhere in its frequency range. Those basses made of a material other than wood often have less chance of the problem because the “non-wood material” has a resonant frequency outside the frequency range of a standard tuned bass. This is no guarantee; some non-wood basses still have slightly dead or weak notes.
Those that have owned dozens of basses and have never noticed a single one of them having a single dead spot anywhere are not the owner of very unique basses, they are just very unique people.
A piece of advice; don’t look too hard for dead spots on a bass or other stringed instrument, because once you know how dead spots sound and feel*, and also discover on which notes they are the most common, you get to the point where you can’t avoid noticing them.
Edit: I would define the term “dead spot” as being discussed here as: “a note where the fundamental frequency has less sustain than other notes of different, but relatively close by frequencies”. Just clarification that “dead spots” aren’t totally dead; they are just varying degrees of “weaker” when compared to other notes on the same instrument.
*(yes, you can feel dead spots on a bass from the vibration in the body & neck. The note where you can feel a significant body vibration is usually the dead spot. I’m pretty sure I can find the dead spot(s) on most electric basses while listening to moderately loud recorded music in earbuds with the bass un-amplified / unplugged)