How? On iPhone I only give it location permissions while I'm using the app, and I pay with Apple Pay to avoid giving them much that they would be able to correlate elsewhere.
I believe they use the proximity to choose the closest store and to start the order when you get there but are still waiting in the drive-thru line to give them your name/code.
I haven't tried to disable it completely, but even if I can't I dont find that limited location tracking for when I'm actually ordering food and driving there to be an issue.
The only thing required for that is a zip code. In any case, once you choose a location, it can simply save that preference instead of tapping your lat/long coordinates every single time. Just more data to sell to a broker down the line.