I don't think that there is a causal relationship between these two. TSM manufactures a lot of GPU chips for companies like Nvidia and AMD. These GPU chips are used to mine crypto's in an efficient manner. GPUs are more efficient than CPUs (e.g. Intel, AMD) for this number-crunching task. Which is why TSM (indirectly) benefits if mining of crypto's increases.