Thermocouples aren't mechanical. They're made of dissimilar metals that have different responses to temperature. The mobile charge carriers will increase in one more than the other when subjected to increasing temperature creating current flow.
Whoa, neat, I've been to this thing before. But it was nowhere near this done! I think it was a good 16 years ago when I was taken there by some of my family.