If you do something from force of habit, you do it because you have always done it in the past, rather than because you have thought carefully about it.
He looked around from force of habit, but nobody paid any attention to him.
Unconsciously, by force of habit, she plugged the coffee pot in.