Your house has 120V AC and your phone needs 5V DC (slightly more if it’s a modern USB C phone).
Converting to that voltage requires some electronics. If you’re asking why not just include them in the cable, like laptop chargers —- well you could, but why? It will be just as bulky but if the cable becomes frayed you’ll be generating a lot more ewaste than just getting a new USB cable.