Turkey isn't exactly a shining example of western democracy. Erdogan systematically dismantles everything that could oppose him. Removes diplomatic immunity from parlament so that his political enemies can be declared supporters of terrorists and put away forever. Freedom of the press? Nope... Freedom of speech? Definitely nope (say or write something bad about Erdogan and you'll be prosecuted). He's even trying to silence people in other countries that "attack" him (remember B?hmermann?). Furthermore, he threatend members of the German Bundestag and questioned their "bloodlines" because they stated that the Ottoman government actually commited
genocide when it systematically killed 1.5 millions Armenians a hundred years ago. (For contrast, just imagine how you'd feel about a high-ranking German politician telling you "Remember what happened during WW2? We don't actually believe that counts as genocide at all..." And then he/she goes on and tries to shut everyone up that says otherwise. You'd probably be scared quite a lot, because everybody that denies the past is bound to repeat former mistakes.)
So every time any politician talks about how they stand behind the democratically elected leader of Turkey I don't know if I should start laughing or crying. The simple reason for everyone to cozy up to Erdogan right now is because he promised that he can make all the refugees go away (for a "small" fee).