You don't need to spend money on phase 1-3 trials for safety and efficacy of the molecule but you do still need to spends tens of millions of dollars to prove that the generic drug you are manufacturing behaves like the original, within a margin of error, and that you can maintain that quality control in the future.
Too much profit is to be made.