Through leveling up my heroes eventually lose abilities I have selected for them. The last one lost all of his abilities that he didn't start with at about level 8, with those I had previously selected being available again for reselection. This is particularly noticeable when planning a hero to specialize in one type of magic and have to reselect all his magic levels again.