We know that a function $f : U\subset \mathbb{C}\rightarrow \mathbb{C}$ is said to have singularity at a point $z_0$ if $f(z)$ is not analytic at point $z_0$, although function may be analytic in some small neighborhood of $z_0$. Note that $U$ is any open subset of complex plane.
To check whether the function is analytic or not at the point, the point must be in the domain right? But while finding the singularity of function what we do is that we find those point at which function is not defined. Why do we do this ? Because by definition the points at which function is not defined those points are not domain. Hence why do we investigate for those points?
It might be that my question is very silly but I need to understand this.