Safe gap

Ok I'm confused. They say no bed sharing or couch sleeping because baby could fall in the gap. Then why is pushing a crib next to a bed any different or more safe?! There still a gap... someone please explain this to me.