They are installed to protect machiyas from mud scattered by running horses and urination of dogs and cats that run through passages under the eaves, which are called Inubashiri.
馬のはねる泥、犬走りと呼ばれる軒下を通る犬や猫の放尿から壁を守るもの。