Google, paradoxically, by having such a good RoI on ads has a hard time taking on other businesses. This is a big part of why they spun so much stuff off; if they stay within Google, business forces would tend to starve them despite the abundance of resources that at first glance seem to be available. It's why you see companies so often cut product lines that are profitable, but not as profitable as something else... or, to put that another way, this isn't something I'm hypothesizing about how it might happen because of the theory, it's a thing that happens all the time. I've seen at least two major passes of it at the company I work at.
These are somewhat linked to profitability as you say, but a safe slow-growth company generating massive profits (eg Coca-Cola) doesn't face this.
To give a concrete example, imagine I have a hotel in New York generating profits of $50 mn/year. If it required an investment of $100 mn to build hotels, making another one in Atlanta that generates profits of $10 mn per year would still be sensible if these exceed the financing costs. My return on (book) assets would fall from 50% - 30% but my profits would rise from $45-50 mn.
Tax, risk and use of management time can complicate the issue but your point isn't first-order correct...