SNP Ministers have been criticised for the spend compared to vulnerable people in hospital.