Flashings prevent water ingress at roof joints or vents, which is pivotal in maintaining the roof's health.