I think it's a natural English thing. If you're using "Where is...?", then you use the direct object pronoun (the). The only time I'd use "a cucumber" when asking about its location, I'd say "Where can I find a cucumber?". It just seems more natural that way.