Drilling that deep is not easy. Directional drilling equipment is very expensive, and heat + pressure take a toll very quickly on such equipment. Directionality is important as boreholes are rarely straight an it is entirely possible to drill a borehole in a U shape accidentally. Drilling requires high pressure pumps to clear the face of the drill bit, and the cut material must be returned out of hole. That's one hell of a compressor or mud pump. Below a certain depth rock behaviour changes from brittle deformation toward more plastic (and explosive) deformation, to eventually plastic deformation entirely. Groundwater pressures can collapse holes. Deformation can collapse holes. The rock grinds back at drilling gear. Equipment can become stuck and difficult to dislodge. Holes eventually collapse and partially close on their own, requiring casing of the hole. To case, drill a section, retrieve gear from down hole, slide casing in, replace Drilling gear, repeat for each length of casing. It can be quite different per hole, and per rig setup. Some rig setups permit casing in place (this is more a drillers specialist area than my own).
Then, there's the issue of keeping the hole open long term. Hydrothermal activity tends to dissolve minerals in water. Minerals tend to crystallise out inside boreholes and pipes over time, like hard water in water pipes in rural areas, constricting flow.
What is being proposed is difficult and requires an extreme amount of maintenance through its life cycle.