Why voters vote as they do