The pipes in Japan are very narrow so you have to use some type of net to catch the hair and throw it in the garbage. Otherwise you will have very clogged pipes!
At some places they will already have provided you with a net/filter but otherwise you can buy it at any 100 Yen Shop!