You don't have to resign forcibly. Based on the contractual terms, they can also terminate the employment. If they do, they would have to pay you, maybe that's why they are asking you to resign. It all depends on the contractual terms between you and your company.
For further queries, feel free to contact me.