The AK is suppose to have harder to control recoil, so they make it so it can 1 shot people with a headshot. It's not the greatest accuracy for one tapping people.
The M4A1 is suppose to have better recoil, making it easy to control a burst shot to kill people. Its more accurate for one tapping...