There have been reports that Gene L. Coon wrote it as a joke (under a pen name) (perhaps because he was no longer associated with the show) but the producer took it seriously and filmed it.
Well, its use on The Wonder Years had nothing to do with its quality, but rather its commentary on relationships between men and women in the 1960s when the episode was filmed (and when Wonder Years was set).