The aspect of profit that is potentially bad is the maximization part. Based on the cost of the machine and some kind of statistical model, let's say that we determine that the inventor can make the most money (per time worked) if he sells his machines for $6000. Moreover, those who buy the machines can run the same kind of rational statistical analysis and sell the produced pads for $0.20 each (instead of $0.03).
Now only 25-50% of rural women are using these sanitary napkins, but the makers are maximizing their profits. How long before another person comes along and designs a similar machine that can narrow the profit margin?
Theoretical capitalism is quite efficient in theory, but in practice there are a lot of difficulties realizing it. In this case, it is admirable that people are willing to forgo maximal profit in an effort to instead look after the health of as many women as possible.