What are the advantages of a carriage bolt?

The square shoulder, sunk into wood, prevents the bolt from turning and the round head gives a smoother finish.