You want to sautee your onions with the lid off so that the liquids can evaporate and browning and caramelization can occur. If the lid was on, the onions would steam, and not become browned.