ELI5 what is happening here?

Fixing a leak in the drain/p trap. Fixed the leak but now water will fill in sink for a bit then drain suddenly like a toilet. Is it just the weight of the water pushing it thru the drain after it builds up enough? It’s not an issue just find it very interesting behavior.