Earth is not a perfect sphere, and the radius of earth is minumum at poles and maximum at equator. Since value of g varies inversely with the radius of the planet, therefore at poles, where the radius is minimum, the value of g becomes maximum.