Perceptions on prostitution have changed significantly over time. While it may seem strange today that Shamhat is a prostitute, in the ancient Near East her role was sacred, a role akin to a priestess. An ordinary woman would lack the divine favour Shamhat's role offered her. Therefore she would not be able to civilize Enkidu.
Further reading: Sacred prostitution