Most are wired through the ignition switch, so that they work only when the ignition is switched on. This prevents you accidentally leaving something switched on which might cause the battery to go flat.
Wire and cable sizes are classified by the maximum amperage that they can carry safely. A complex network of wires runs through the car. To avoid confusion, each wire is colour coded (but only within the car: there is no national or international system of colour-coding).