If you accelerate, the drone, by a calculation ‘integration’ of the accelerometer sensor, knows your speed at each moment, up to the point when your speed is a constant.
When you continue your motion without acceleration and no change in heigth, then the accelerometer sensor does not see acceleration so the drone knows you speed is constant (your last known speed)
Then you decelerate (detected by the accelerometer sensor), up to a point when your drone, by integration with time, knows your speed is ‘0’.
This method is much more precise than any method with a GPS that is not generally used to measure speed. A GPS can be used to confirm speed via the Kalman filter algorithm in some cases.
when I had a GPS problem, before Parrot did exchange my Anafi, ‘0’ GPS was received... but I could still fly the drone and see its speed...
if you wish, I can send you links to litterature on the subject...