They weren't useless, they proved if the direction that the prototype was exploring was worthwhile. I've personally made many completely shit code prototypes in the years before we had LLM's, of course they weren't magically production ready, that's not the point of a prototype.