Why water in well is hot in winter and cold in summer?

because water would be hot if our environment is hot and if our environment is cold then water would be cold