"Basket case" is also slang for someone who has become effectively
worthless; they are mentally, emotionally or physically
crippled to the point that they cannot function.
The term originally was slang for someone who has had all four limbs amputated. The derivation of the extended meaning from this should not be hard to see.