Why does the following reaction occur?

cbse
redoxreactions

#1

Why does the following reaction occur ?


#2