Seam sealer questions

Sometimes its the windshield gasket itself that leaks, cause’s? No sealer was used when the windshield was replaced and/or the vehicle was in an accident and the window pinch joint is tweaked.