Because it did not meet EU admission standards, in particular in relation to essential freedoms and human rights.
It's Turkey which asked to be admitted (in the 80's, long before Erdogan was elected), not the EU which asked Turkey to apply. It's the EU wich freezed the application process, not Turkey. You are getting it the wrong way.