A habit is a mental process. You follow steps that build onto each other in a way that becomes automatic. It can become automatic because the steps are clear, and they have been repeated enough time that it becomes like second nature.
Very complex tasks, like driving a car, become second nature with enough repetition and clear things you have to do.
Because Things are easy when you have solid process, habits makes things easy.