I asked my direct boss's permission to be officially moved to the sales team, and spent most of that summer developing a custom CRM that facilitated the flow the sales staff used. When it was finished, the average number of leads contacted per associate increased 40% basically overnight, dramatically affecting the growth rate of the company (and the sales staff absolutely loved me).
Any software developer could have built what I did, and had the company realized what they were missing I'm sure they would have got one of their "real" developers to spend a couple of weeks and probably put something together better than what my intern-self was capable of. The value I added in that situation wasn't my engineering prowess, but rather my ability to see exactly what was needed and build the right tool for the job.
Unless you have personal knowledge that that actually happened, I will bet you dinner that it did not. Yes, it is absolutely the case that it would have been in their best interest to do it. No, software companies cannot routinely self-motivate to actually do this.
Great news for anybody here, though: if you can unbork sales/marketing/etc for a software company that ability is quite lucrative indeed as a consultant.
But the reality is that the above is almost never what happens, even when the task required is limited to strictly marketing / sales / engineering, rather than requiring some combination of the above to be executed simultaneously and well.
If you can walk in, talk to each of the different groups involved, understand their separate needs, design a mutually acceptable solution, and then get the thing to actually be done - that is absurdly valuable, and you should bill accordingly.
As an intermediate step, I'd like to see more companies actually put 1+ dedicated engineers on permanent assignment in marketing, sales (preferably not solely as sales engineers), and recruiting. Most SaaS companies that I've worked with which have, say, 20+ engineers have not a single one assigned permanently to those three jobs. Great news for me back when I was consulting, not so great news for their long-term results.