LSD and sticky notes were invented by accident -- as were tons of other things.
Sure, one could add several pedantic reservations here, if they wanted to be thick on purpose, but the meaning of the parent's statement is clear. This series of passive aggressive counter-questions seems to violate the principle of charity.
It's pretty obvious that evolution didn't "invent" anything because accident or not, to invent requires an originator or discoverer which is to say an entity with agency. It's as absurd as saying relativity invented black holes.
And yet everybody understood what the parent means, which is that it was created by an evolutionary process.
And also everybody understands that the pedantic minutiae of whether "invent" can be used here is beside the actual point the parent makes.
It's enough that it exists in the real world.