Why ?
The Medrash explains
He was weeping
because he realized that he had upset his Heavenly Father.
He was singing because he realized that Hashem was allowing him to atone with exile & that he would be reinstated.
Boruch Hashem
Now may be a good time for a gem of Torah study.
www.GemsofTorah.com