Plumbers will first use two types of pipes and tighten their connection. Then, then thread on the valve pipe joint and tighten this fitting.
Later, they align the slip joints for a tight seal while choosing flexible supply tubes. After closing the gasket, you can see there will not be any leaks.