My wife's name is Aleksandra, but the short version of that is Ola. Similarly, Olek is a short for Aleksander. Also no idea why.
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.