NASA sent a small experiment called MOXIE to Mars aboard Perseverance. Its raw material was already outside the rover: carbon dioxide in the Martian atmosphere. Using electricity, the instrument separated oxygen from that gas.
The output was modest. The location was the achievement. Engineers could study how a real machine behaved on Mars before anyone had to depend on a much larger one.