The general logic has been that it’s really easy for people to say they want to marry a U.S. citizen, get approved to emigrate, and then change their mind after (the common term for this is visa fraud). So the government grants a series of visas for increasing lengths as you move through that process and prove that it is a bona-fide relationship.
A K1 visa is the last step before getting married, and stipulates that you get married within a short time after entering the country, after which you have to remain married for several years, prove you’re doing things normal married couples do (like live together), and then you can get your permanent residency.
So, in short, it’s not as clear cut as a one-time yes/no decision. You very much live within a prescribed framework for several years until the government is satisfied that your relationship is real.
(Source: personal experience)
One interesting note here is the case of DACA recipients. If they leave the country to adjust status it should triggers a re-entry ban unless they're granted parole (DACA are quasi-illegal but granted a form of amnesty as long as they remain in US). AFAIK parole isn't granted for US consular visits, so it's effectively banishment as punishment for trying to adjust their status to reflect their marriage.