This is really a trick that I learned years ago. During cooking, the onions give off a lot of moisture. Without the paper towel, the moisture condenses on the inside of the lid and falls back into the pan. The paper towel "traps" that moisture so that the onions will nicely caramelize.