Stress. That’s it. It’s most common when you transplant these such as growing indoors from seed or propagating stem cuttings then transplanting without acclimating the plant first. Change the growing conditions too fast and it will stress this plant. Purple leaves are only a sign of stress. Don’t cut them off. Follow good care practices for growing goji berry plants and it will begin to regain its natural colors.