First the conductor that connects from the motor to the metal water pipe is not a ground.
The purpose of this conductor is to make the metal pipe and motor have the same touch potential. It bonds the two together so there is no difference in voltages between the two.
It is called a “bonding conductor” and yes it needs to be installed before anyone uses the tub.
It should be a #8 or larger conductor