There are a few systems where a wizard can just "do anything", like having an unlimited wish power. Though they do get limits on power in various ways.
But most magic systems have set spells. And each spell does a fairly specific thing. And a wizard can only know a small number of these...