Although it appears that the stars are moving gently across the sky, it’s not the motion of the stars themselves but Earth’s rotation that causes them to move. In order to take longer exposures of the night sky and still maintain pinpoint stars, you need to use a star tracker.
A star tracker, or more scientifically, an equatorial mount, allows us to counteract Earth’s rotation by rotating your camera in the opposite direction and at the same speed. That way we can ‘track’ the stars and capture exposures of multiple minutes without any star trailing. This unveils fainter details in objects such as the Milky Way and also produces images with less visible noise. The caveat is that your foreground will be blurred, so you have to capture a separate exposure for the foreground and blend the two together.