Have you ever glanced toward the cockpit while boarding a plane and noticed it open? It may seem like a security risk, but there's a reason it's left open.