when it bakes, the butter melts and creates steam because butter has a good percentage of water. the steam gets trapped in the individual layers and that causes the flakiness, tender layers. butter is melting and the dough is absorbing that melting butter, attributing to the delicious flavor of the croissant.