How did vos get to Latin America?
Why is it used in some places but not others?

Here is a video by Dr. Kim Potowski explaining some of the factors involved.

Aquí hay un mapa que aclara un poco más:

Here is another useful video on this topic:

¿Por qué en algunos países hay voseo y en otros no?