Of what use is sex to bacteria?

Of what use is sex to bacteria?