For in a/the corner to be correct, you'd have to be indoors, for example. The reference is clearly to a street corner and on is used because of that. The is probably used instead of a because the speaker has a particular corner in mind.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.