As mentioned, regular shadow boxing boosts your form and technique. Since you're not distracted by the bag or your opponent, you can focus your attention on your movement.
This makes it easy to perfect your form and technique which are both important in increasing your punching accuracy and power.