Retirements are based on a dice roll of age, overall and potential. Other factors determine the percentage chance of retirement.
Also a player under contract won't retire unless injured.
I don't know what the percentages are, but this year I have seen more players than ever with A potential and higher overall stick around.