Well, that is some BS history, too. From Wikipedia:
The Constellation program was a crewed spaceflight program developed by NASA,, from 2005 to 2009. The major goals of the program were "completion of the International Space Station" and a "return to the Moon no later than 2020" with a crewed flight to the planet Mars as the ultimate goal.
Constellation began in response to the goals laid out in the Vision for Space Exploration under NASA Administrator Sean O'Keefe and President George W. Bush. O'Keefe's successor, Michael D. Griffin, ordered a complete review, termed the Exploration Systems Architecture Study, which reshaped how NASA would pursue the goals laid out in the Vision for Space Exploration, and its findings were formalized by the NASA Authorization Act of 2005. The Act directed NASA to "develop a sustained human presence on the Moon, including a robust precursor program to promote exploration, science, commerce and US preeminence in space, and as a stepping stone to future exploration of Mars and other destinations." Work began on this revised Constellation Program, to send astronauts first to the International Space Station, then to the Moon, and then to Mars and beyond.
Subsequent to the findings of the Augustine Committee in 2009 that the Constellation Program could not be executed without substantial increases in funding, on February 1, 2010, President Barack Obama proposed to cancel the program.
In 2011, NASA adopted the design of its new Space Launch System.
The Artemis program is a Moon exploration program that is led by the United States' NASA and was formally established in 2017 via Space Policy Directive 1. The Artemis program is intended to reestablish a human presence on the Moon for the first time since Apollo 17 in 1972. The program's stated long-term goal is to establish a permanent base on the Moon to facilitate human missions to Mars.
Two principal elements of the Artemis program are derived from the now-cancelled Constellation program: the Orion spacecraft and the Space Launch System (as a reincarnation of Ares V). Other elements of the program, such as the Lunar Gateway space station and the Human Landing System, are in development by government space agencies and private spaceflight companies. This collaboration is bound together by the Artemis Accords and governmental contracts.
In the third phase of its HLS procurement process NASA awarded SpaceX a contract in April 2021 to develop, produce, and demonstrate Starship HLS
So, as I have already posted, the original NASA plan was to go to the Moon and then to Mars. That was not getting government funding at the necessary level from Congress. Obama cancelled most of the program, and Trump reinitiated some of it. But, even the original Constellation program was planning to land on the Moon, and establish a presence there. So, NASA should have been planning a lander along with the various rocket launch vehicle with the changing name that became SLS. The problem is just that NASA is not getting the funding to do all of that. But, it has been in the plans since about 2005, with the original moon landing date set at 2020. NASA let the contract to SpaceX for the lander a year after the lander was originally scheduled to land.
It looks like SpaceX plans to go to the Moon no matter what NASA does. So, for SpaceX, it is just a matter of delivering on a fixed-price contract with NASA. If NASA cancels the contract, it probably won't have much effect on SpaceX.