For situational comedy to work, viewers need to be able to suspend their disbelief enough to care about what is happening to the characters on screen.
If the whole thing feels contrived – if we feel we can see the wizard behind the curtain – the jokes just don’t work. Think about how unfunny it is, almost by default, when you can tell someone is trying to be funny.