Calling getChildFragmentManager() in the parent fragment thus making the created dialog a child of the parent fragment has a very good reason when the parent fragment needs to share its viewModel with its child dialog.
Better to describe it by a use-case. Let's say the parent fragment shows a list of data that can be sorted using various ways and the user can open a (child) dialog where it can set the sorting details of the list. The child dialog allows the user to change the sorting and the easiest way is to share a single viewModel between both - the parent fragment and the child dialog. Once the user changes the viewModel and closes the dialog, the parent fragment refreshes using the newly provided sorting details.