Why did Tansen agree to sing Raga Deepak?

Tansen knew that he might die if he sings Raga Deepak but he still agreed to do it because he did not dared to disobey a direct order from his king and also he wanted to show that he could sing the Raga.