Get your taxes done using TurboTax

Can anyone explain why the qualified insurance premium deduction in Missouri is reduced when the premiums are paid as a deduction from your SS check?  The deduction gets reduced by the same percentage as the SS benefits are taxed.  This makes no sense to me as the SS benefits are separate from Medicare.  My spouse pays Medicare premiums but does NOT get SS benefits and gets a 100% qualified insurance deduction for Missouri.  Nobody at the MO Dept of Rev can answer my question, not can anyone at the SSA.