The importance of courtship in animals includes the following except