I’ve not played d&d since 3.5 but as I recall wizards learn spells whereas clerics get theirs from interaction with their gods I.e. divine power.
Mages can’t do both as you cant just learn divine spells without a fundamental change of class.