GIF not looping properly

I am not sure why even though in the timeline preview, animation is looping seamlessly but when I export as GIF, it just doesnt loop seamlessly anymore.

Does anyone know why?