Lets see if I can remember some of this stuff and maybe get it right. Back in the OLD days, phone service used 2 wires for a line. The wires were identified as "tip" and "ring". These names came from the plugs used by phone operators to connect calls. One wire was connected to the tip of the plug and the other to the metal ring that was part way back on the plug. Back then, all the pieces effectively belonged to the phone company including all the phones and phone wiring inside your house. The phone companies standardized to a cable with 4 wires. Typically only two were used. If somebody wanted a second phone line, the company "ran another line", which usually simply meant use the 2 spare wires for the second line. In most areas this was all the domain of the Bell System. The very distant number two was General Telephone, eventually known as GTE, then Verizon. This was the status quo for decades, until people eventually thought about shipping data. Then an assortment of new requirements and equipment were added. The modems and all the other new stuff were still all the property of the phone company. They argued that total control over attached equipment was necessary to protect the phone system from physical damage.
Then regulations were changed that let customers own their wiring and attach non-phone company equipment etc. The phone companies still demanded protection for their equipment. This was done in the form of a protective interface box (which you still had to rent from the phone company). Some of them were in reality a tiny box with the customer wire going in one side and connected directly to the phone company line going out the other. This was the genesis of the Network Interface Unit NIU/NID. The current versions are typically seen on an outside wall and mark the division between what the company owns and is responsible to fix on one side and what the customer owns and is responsible for on the other. Typical ones now have some terminal strips and usually a modular jack connected directly to the company line. The jack is there as a test port. If the phone goes out, you can plug a phone in there to see if the company side is working. They even have 2 covers, an outer one the customer can open to access the jack and an inner one to the terminal strips that the customer isn't supposed to open.
Next up chronologically is the desire/need to ship digital data, preferably without tying up the phone line and preventing regular phone calls at the same time. We are still working with one pair of wires. It turns out that a pair of wires can carry a VERY WIDE range of frequencies, much more than the range we can hear. There is plenty of frequency range for data and voice to share the same wires. The upper frequency limit is mostly determined by the condition of the wires and the quality of any connections. Any frequencies above what is needed for voice up to the wire's limit can be used for digital data. The voice and data can be separated out through the use of filters. In the early days of DSL (I don't know, maybe still), when you signed up for DSL they would send you a digital router (that could filter out voice) and a handful of filters to stick on each of your phones to filter out the DSL noise. That way, you have voice and DSL on the same 2 wires. Some DSL installations eliminate the filters at each phone by putting one filter near the NIU in the wire before it is distributed through the house. To do this, the unfiltered line that includes the DSL signal can be connected over to the other, previously unused wire pair. That pair can be used to connect to the DSL router at whatever chosen location. This is the way Frontier had my connections done here. So there you have it, DSL and voice inside the house using 4 wires. But on the phone company side of the NIU (and the customer side as far as that filter) there are only 2 wires in play.
I won't go into the cat 5/5E/6 stuff right now. But I will mention that those cables have 8 conductors but only 4 of the conductors are used. (The extra 4 may have some use by now. But, the last I knew of they didn't.)