GIFs are meant to have flat colors because if you use a gradient, they will not have a smooth transition. You will have, either very visible banding, or you could have a lot of dithering or both. Dithering is very inefficient to compress making a file too big.