They are bad for health because they contain glycoalkaloids which is member of nightshade family.If taken in excessive amount they are toxic for health.Mostly Green potatoes contains solanine and chaconine glycoalkoids in them.