$P(Y=0)+P(Y=1)=1$ in above diagram. Arrows represent probability $P(Y=0\, \text{or}\, 1|X=0\, \text{or}\, 1)$
To use the law of total probability, I know that to find $P(Y=0)$, we need to find the probability of the intersection of $Y=0$ with all the other events in its sample space. Why exactly does the sample space include $X=0$ and $X=1$? Isnt the sample space consisting $Y=0$ only consist of $Y=0$ and $Y=1$ since $P(Y=0)+P(Y=1)=1$?

Simply $X$ and $Y$ are dependent random variables. To calculate the total probability one needs to consider the transition probabilities as well as the a-priori probabilities according to Bayes rule.