Originally, people would visit their nearby patron Shinto god or famous shrine or temple every day for a hundred days; this was called the "Hyakunichi mode" (hundred-day visit).
元は、近くの氏神神社や有名な社寺に、百日間毎日参拝するというもので、これを百日詣という。