A bike computer itself could measure speed without a speed sensor.
The speed is measured by GPS after the satellite signal is located.
It’s better to equip a speed sensor if riding in places where GPS signal is not available, like in tunnels, mountainous areas or indoors, or near buildings.
To measure accurate speed, you need to set the correct wheel size.
Read articles to set the wheel size