what is the need for vertebrates to evolve from oviparity to viviparity?

http://www.google.com/search?client=safari&rls=en&q=oviparity+to+viviparity&ie=UTF-8&oe=UTF-8