You use this phrase when you feel you must do something. It means you have no other choice. You feel a strong need to do it.
、。
Since it's the department head's party, I have no choice but to attend.
、。
My best friend was in trouble, so I couldn't not help them; I had to help.
、。
As this is a request from a client, we have no choice but to accept it.
、。
Just because you feel you must help doesn't mean you should neglect your own work.
、、に。
I had a 38-degree fever, but since it was an important exam, I couldn't not take it, and ended up heading to the venue.