This problem is quite popular (A and B disjoint, A compact, and B closed implies there is positive distance between both sets has currently 70 upvotes, not to mention the endless horde of repeats that one can find of this question on this site), and I myself have seen it for homework at least once or twice. I am wondering if this theorem is widely used. In essence, I am asking the same question as Your favourite application of the Baire Category Theorem but for this "compact sets are distant" theorem instead of BCT.
I'll go first (added to the answers): I've seen it used in a key way on pg. 27 of Shlomo Sternberg's notes introductory notes on Lebesgue measure http://people.math.harvard.edu/~shlomo/212a/11.pdf. Basically we have that although Lebesgue outer measure $\mu^*$ is not additive in general, it's easy to show that for sets with positive distance between them, $\mu^*$ IS additive, meaning that for disjoint compact sets $\mu^*$ is additive.