Raise to Wake is a convenient feature that is enabled by default in iOS 10. It automatically wakes up your iPhone when you pick it up. This feature is available for iPhone 6s and above.
You can disable it if you find it annoying. Go to Settings > Display & Brightness. Tap to turn off the “Raise to Wake” switch.