“Why is it that driving without a license is punishable and flying without one is not?”
Probably because for the most part, the general public isn’t endangered. If a person doesn’t have a pilot certificate, only those who fly with them are at risk. Sure, the license-less pilot can crash into a school, but it’s not quite as high a possibility as some untrained oaf losing control on the freeway.