Why would any human choose a city instead of the countryside? The answer is easy: comfort!
Cities make life easier. Easier food, easier warmth, easier safety, easier everything. Enkidu's life is very hard. Enkidu needs to be educated.
Education takes place in the temple of Anu, and since Enkidu won't come to the temple, the temple must go to Enkidu. in the form of Shamhat.