Why pack and play?

Meg • New York City first time mom!
I've seen a lot of posts recommending a pack and play instead of a bassinet.   Why is it so highly recommended? Because it's portable for traveling?