When they find their dead children in the tomb, both families are over stricken with grief and tragedy. They bury them next to each other, to prove their love for each other which will last forevermore. After, the two families make peace as they don’t want another tragedy like Romeo and Juliet taking place again.
Hope this helps!