Scott P. answered 03/18/19
Proof-based and computational linear algebra tutor
I think the issue here is that the union of two subspaces is not necessarily closed under addition, and subspaces need to be nonempty and closed under addition and scalar multiplication.
You can think of two nonparallel planes in R3 that each contain the origin. Each plane is a subspace of R3 and they intersect in a line through the origin. But when you add two nonzero vectors, one from each plane and neither of which lie on the intersecting line, the result will not lie in either plane, so you will not have closure.
Let P1 = span{(1,0,0), (0,1,0)} = xy-plane, and let v1 = (1,1,0) which is in P1.
Let P2 = span{(0,1,0), (0,0,1)} = yz-plane, and let v2 = (0,1,1) which is in P2.
Then v1 + v2 = (1,2,1) which is in neither the xy- nor yz-planes; hence the union of P1 and P2 is not closed under addition, and so is not a subspace.
A simpler example which is similar would be to consider two nonparallel lines through the origin as subspaces of R2. Picking two nonzero points/vectors, one from each line, and then adding would yield a point/vector on neither line.
For yet another example, consider the vector space of polynomials up to degree three over R. Let A = {ax3 + bx where a,b are in R} and let B = {ax2 where a is in R}. Then A and B are subspaces, but (x3 + x) + (x2) is not in A or B, and so is not in the union.