soft gaskets that compress against the roof serve a couple of valuable functions. It keeps hornets from turning that area into a condominium while it is sitting around unused.
It also reduces heat loss. As to keeping water out, that is good since it also keeps dirt out that flows in with the water. Lots of dirt accumulates on roofs. Dirt grows mold which is not a lot of fun to scrub off.