Why does the following reaction occur?

Why does the following reaction occur ?