in french every noun is either masculine or feminine, there's no neutral, no "it". for non-gendered objects like croissants and oranges the gender is mostly abritrary but it never changes and must be learned. in this case "croissant" is masculine while "orange" is feminine.