Leaders are not elected. Politicians are elected. Their election in turn provides politicians with the opportunity to become leaders.
You don't become a leader by telling people what they want to hear, although doing so certainly helps to you get elected. A politician becomes a leader by telling people what they don't want to hear.