The answer to this question is really simple. Alchemy was a philosophical and protoscientific tradition to find gold. It tried to combine matter or change elemental matter, which wasn't developed well.
Alchemy failed because it was impossible to transmute lead into gold at that time