What even do they need to be outside for? It's a drive-through: aside from the arglbarglarglbarglarglbarglarglbargl of some monster diesel Dodge Ram killing the microphone it's generally an "everyone is in a vehicle or building already" job.
There’s a couple of places I’ve seen that do this. Basically it just streamlines the process so once you get to the window they just have your food ready vs waiting 10 min for the granny in front of you to order then wait for her to get her food. I’m sure some industrial engineer can come in here and explain it better though.
Basically, it's all about workflow. With the drive through, you've got this system that is very linear. The result of that is a flow that can get incredibly backed up easily if one step takes a long time. And believe it it not, placing the order is often the slowest step. This is why many McDonald's have put in 2 drive through lanes (while still keeping just one payment window and another pick up window which all cars must funnel through).
This basically allows more orders per minute to be collected, as well as preventing clogs due to grandma taking her goddamn sweet time to put in her order