It's still common to install copper pipes in new homes because it has a high thermal conductivity rate and allow both hot and cold water to flow quickly through the house without too much energy loss. However, this metal is expensive compared to other options and not easily bent into a shape which means that most pre-built houses come with as few connections to copper piping as possible. This can result in a lot of extra cost and headache when adding new fixtures, appliances or equipment to the house later down the line.
When it comes to plumbing repairs and replacements, a copper pipe is also not necessarily the most durable solution out there. It's true that a copper pipe does not corrode easily (unlike steel) but it is still susceptible to corrosion from acidic water over time which can lead to pinhole leaks in your system. These pinholes are almost impossible to detect with just your eyes so, by the time you realize you have a problem, significant water damage could already be underway from your copper pipes.