IIRC it has to do with making sure your finger makes contact with the sensor ring when you are using Touch ID. If the button was not slightly deeper than the ring, it would be very easy for the user to attempt to use Touch ID without actually touching the ring to activate it.