If someone would pronounce Alek and Olek the same, the chosen transcription of the shortened nickname is pretty much arbitrary.
Very likely this is due to both being transliterations from Cyrillic.
Oleksander is Ukranian form of Aleksander.