Let $p\colon(\widetilde{X},\widetilde{x_0})\to(X,x_0)$ be a covering space, where both $\widetilde{X}$ and $X$ are path-connected. Note that $p$ is not assumed to be surjective. In Prop. 1.32, Hatcher establishes a bijection between the right-cosets of $H=p_*(\pi_1(\widetilde{X},\widetilde{x_0}))$ in $\pi_1(X,x_0)$ and the fibre $p^{-1}(x_0)$ by sending at coset $H[g]$ to the endpoint $\widetilde{g}(1)$ of a lift $\widetilde{g}\colon[0,1]\to\widetilde{X}$ of $g$.
Since $\widetilde{X}$ is path-connected, this map is surjective. Why does $X$ need to be path-connected (equivalently, connected)? Is this only to ensure that we can speak of the number of sheets of the cover?