Why is tin in solder?

Because it melts at a realtively low temperature, it doesn't corrode, and it has excellent conduction qualities.