And I note that the immaculate conception did not become dogma until the 19th century as well, but neither observation is relevant to the current discussion.
However, there is historical precedent. It did not originate out of thin air, historically speaking.