Requiring it to be open has more to do with the fact that a function is holomorphic at if there exists an open ball around such that is complex-differentiable there. So by the very definition, for to be holomorphic in each point of must have a neighbourhood contained in (too much !).