Why can’t Federation starships just transport themselves

Okay, hear me out. Starships in Star Trek have every gadget and gizmo imaginable, but one thing seems to be missing. Why can’t they transport themselves? Imagine how much easier docking, landing, or even battle situations would be if the ship could just beam itself somewhere.

Is there some specific reason this isn’t possible? Like, there is a range limit, so is there also a maximum load capacity, or some other limitation on the transporter technology that makes this a no-go? If not a ship then why not a simple shuttle? And if the transport buffers can’t dematerialise themselves, who says they can’t be loaded in a torpedo or something? Pieuw pieuw beam… the way it plays out in my head is awesome.

Or is it just one of those things the writers never addressed? I don’t have much knowledge about transporter tech, but it feels like such an obvious use case. Curious if anyone knows more about this?