Why did madame cj walker invent the relaxer?

Madam C. J. Walker, who lived from 1867 to 1919, did not invent the relaxer. She thought the kinds of chemicals used in relaxers damaged the hair. There were chemical relaxers for sale long before she went into business in 1906. One of the people who developed a formula for a relaxer is black inventor Garrett Morgan.
Source: Patricia Murphy's Garrett Morgan: Inventor of the Traffic Light and Gas Mask