In fact, she marries him *despite* the fact he intends to be a country doctor and it's not nearly the financial security that they eventually develop *decades* later, as shown in Anne of Ingleside/Rilla of Ingleside.
"But I'll have to ask you to wait a long time, Anne," said Gilbert sadly. "It will be three years…