The code was just created to support some broader goal, which it presumably did much of the time. The value of those goals is where the meaning comes from.
A chef reflecting on their life would hardly lament that every meal they'd ever crafted ended up in the bin (or the toilet).