Eventually, once the manorial system had collapsed, such temples and shrines started to charge bathing fees, and it's said that this was the origina of the full-fledged sento.
やがて荘園制度が崩壊すると入浴料をとるようになり、これが本格的な銭湯の始まりと言われている。