The phrase means that foolish people tend to spend their money carelessly and quickly, and as a result, they end up losing it.