I suspect you're either severely underestimating what the cloud offers or thinking of a very narrow set of software businesses.
A full stack/backed dev is more than capable of learning both, but one of those has way more foot guns than the other.