Sometimes the benefit is biological like it is with smoking or drugs. Sometimes it's emotional like it is when you stay in a relationship that is bad for you. And in many cases, your bad habit is a simple way to cope with stress. For example, biting your nails, pulling your hair, tapping your foot, or clenching your jaw.