Yes, as for why code requires higher diameter wiring for longer runs. The diameter of wiring is chosen for different circuit amperages based both on worst case (to code) installation heat dissipation combined with voltage drop caused by the run at the circuit's rated amperage. I forget off the top of my head what the maximum Vdrop is allowed, but I want to say it has to be within 10% to be to code? So a 100ft long 14awg circuit might be fine since it has a 15A max current, but if you were to run it 150ft, you might need 12awg wire, not because the wire is dissipating more heat per inch, but because your Vdrop would exceed "allowances" at the longer circuit path length.
I was looking at those tables not too long ago trying to figure out what I needed to run to a garage I was looking at building. I was planning on a 240v/20A supply to a subpanel in the garage, running a 240v, 1500w heater (because 120v heaters are rare as hen's teeth and often huge, especially at 1500w output, and I don't want to install 4x the size of 240v heaters, just to get the same heat output) as well as supplying a couple of 120v 15a circuits (one for lighting, one for outlets). IIRC I was right near the upper range of 12awg capacity for Vdrop. Like within 20ft, depending on what the circuit length would actually be within the garage. So I'll probably run 10AWG, despite the extra cost of the wiring (it is like 100ft or somewhat more, just to get it out there), because it'll put it safely within the Vdrop limits.