`peak_local_max` does a lot of other things than just find peaks, and we don't want it just for the 3D case, as @jni said, if the function operates on an ND array, it's useful as a public function.