Why do NASCAR and auto racers take pit stops? Doesn't that give your lead away?

It just seems to me that some drivers take unnecessary pit stops. Doesn't this put them more behind ? Aren't they losing crucial time?
5 answers 5