you're making some assumptions that every dev has morals, and that some unscrupulous dev didn't build the thing specifically in hopes of getting this offer
Sure, that's possible, and from a cynical perspective seems likely to have happened. But if I was unscrupulous, there seems to be a lot easier paths to money than making a product, offering it for free, and hoping someone will offer to buy it from you to corrupt it.