The only thing you sometimes have control over is perspective. You don't have control over your situation. But you have a choice about how you view it.
The purpose of a habit is to remove that action from self-negotiation. You no longer expend energy deciding whether to do it. You just do it. Good habits can range from telling the truth, to flossing