That feature is called "reachability" and is designed to let the user access controls at the top of the screen with their thumb. It's a nice idea but triggers unintentionally too often IMO.
https://support.apple.com/guide/iphone/use-reachability-iph1...