SpaceX runs basically as a giant R&D program that also happens to accomplish useful things as byproducts of its approach (with the miracle of insurance to cover costs if things get explody). Every flight is data for incremental improvement. If you think of all SpaceX has ever done was try to get to this point, with somewhere around 80 flights on the Falcon 9, but for a variety of mission buyers (NASA, USAF, Commercia…
Capacity to put mass into low orbit, but building a multipart space station requires far more than cobbling modules together KSP-style. Shuttle and the Canadarm(s) built the space station. SpaceX doesn't have that construction/manipulation capacity. It doesn't have the spacewalk capacity. To match Shuttle and build another ISS SpaceX would need to send people and cargo on the same flight, something that is certainly physically possible but remains logistically complex. NASA doesn't spend millions training astronauts in that giant swimming pool because they like the water.