Its far from settled that the benefits of gain of function research outweigh the benefits. This is a debate that has raged among the scientific community for years (a debate which would over if it was discovered that COVID came from a lab involved in gain of function research).