It was influenced by Chinese tradition in the past that has already known about the way of God from the beginning. That is the reasons why there are a lot of temples were built and used by the Chinese as a place to praise gods. Always helping another. That's why the temple established.
Temples have a lot of sects.
Confucius has Kong Fu Ce. In everyday life some people go to the temple besides praying, they beg for something and some of them get what they wished. The good news is transferred form mouth to mouth and in the end temple has become a place for many people who want to fulfill they hunger of money, loves, lucky, etc. Days after days, it has become a tradition. From time to time, the main purposes of Temple get increasingly blurs.