Ah, the headstock...
You could make it any shape you want - so why is there so little difference in what is made?
Aesthetics mainly, but also a variety of practical reasons.
They have to hold the tuners - and be in line, they need (mostly) to help form a break angle to stop the strings jumping out of the nut.
There is a lot to think about...
Watch and find out more....