Gender bias is the tendency to prefer one gender over another and is a form of unconscious bias where people attribute certain attitudes and stereotypes to others based on their gender. It occurs when individuals unconsciously ascribe certain behaviors to people based on their gender, affecting how they understand and engage with others.