Due to anomalous behaviour of water, when you cool water below 4°C, the volume of the water increases.
Therefore when the glass bottle completely filled with water is kept in a freezer, water expands on cooling and its volume increases so glass bottle breaks.
To avoid this, completely filled bottle is never kept in a freezer.