Why remove discount coupon if i again apply random number in text box on frontend (UI)

Hello Sir,

i have set the coupon code but when i apply the coupon code it is working but when i use set again random number in text box and click the cancel than remove the applied coupon code which i had apply before. please let me know why applied coupon remove.

thanks
Harish Garg