Different roles need to be played by different materials such as sustain mechanical pressure, transfer electric power, transfer heat sensitive fluid, flow of medical liquids etc.
A single material is not the best in every case. Therefore, joining of various materials is necessary.