A union should not do much (and therefore not cost much) when the times are good.
Still, it could lobby for the workers' interest in, say, laws. God knows Big Tech is lobbying:
https://www.statista.com/chart/26673/highest-lobbying-spendi...