What is the benefit of using parent/child functions in Jquery?

What is the benefit of using parent/child functions in Jquery? Why not just assign the line of code to specific elements?

Can you give an example of what you’re talking about?

They may come in handy when you don’t know what the parent or children are. Also it only gives you the direct underlaying layer, if that makes sense. So if you have the following code:
`

Is child of #parent

Is not a child of #parent

` The first h1 is a child of #parent but the other is not.

If you can target specific elements I don’t really see a need to use these functions.