The function is by default off; to enable it, navigate to Settings - Screen Time - Screen Distance and hit the corresponding option on the right. You shouldn't be concerned if the feature is overly aggressive.