Water boils at 100C, but did you know that steam exists at temperature higher than waters boiling point? So steam above the water can go upto 120C depending on the weight of your lid. So when you put a lid on the pan you are semi boiling/ semi steaming which is why it cooks faster.