Marketing done wrong is advertising an already conceived product.
Marketing done right is strategic. It's about segmenting a market, targeting the right niche, and looking for the right positioning within the niche. It's about guiding the product towards both stated and unstated needs. It should happen before, during and after development. And yes it should also involve generating demand.
Starting marketing after the fact is like building quality into an already created product. Quality is designed in.