We spend so much on Wars and law enforcement but so little on mental health treatment facilities, why?

The gunman was Bipolar and so many people knew he was ill even his ex wife!

 Why not spend more money on mental health hospitals and put people like this very sick in?