How is babby formed

I bought a barbie for my niece and when she opened it there was a baby inside it! It was pregnant! I was shocked! Kids these days know too much. (This doll was released about 30 years ago)