WiFi scanning is not nessesary for location to work and as a proof we can use any other app other than Google Maps on deGoogled phone just fine.
This option is officially used to build convinient location history on Google Maps and Google Photos and for building WiFi map for Google’s database. Both with creepy consequence - leaking 24/7 location of every Android phone by default.