If the man who bought her wanted her to be his wife, but if later he is not pleased with her, he must sell her back to her father. He must not sell her to a foreigner, because that would be breaking the contract/agreement he made with the girl’s father.