Airlines hire people who fits the mold of a captain. A captain is required to hold an ATP certificate. An ATP certificate requires the person to have "good moral character." Of course, I'm sure there are a lot of captains who have slipped through the cracks on that one.