Provisional Margin Shortfall 4 April

I am noob in F&O. Today tried it for first time.
Took two positions. Adaniensol 920 CE and AdaniEnt 2500 CE.
I had 10000 cash and 9000 from selling my holding.
The position was of overnight. But at end i exited with 5000 loss.
Now i got an email and call from Zerodha that i have margin shortfall and need to make a deposit.
Can anyone explain, why i have to add margin when i already exited and took a loss which was deducted from cash+ holding proceeds.
Attached relevant screenshots.

These are long calls? I mean you just bought options and closed them?