I was reading reading the definition of bipartite graph and one moment is confusing me. Due to this definition we can consider any graph $G=(V,E)$ as a bipartite, if we take $X=\varnothing$ and $Y=V$. However, I am sure that my reasoning is false.
Am I missing something here?

Yes, you are missing the part that "every edge has one end in $X$ and one end in $Y$." Unless $G$ has no edges, you cannot have $X=\emptyset$ or $Y=\emptyset$.