It's not a fact of being a fangame, it is more of the owner of the IP allowing it. Steam has several touhou fangames.