In the text ransom of red chief Bill and Sam needed a hideout to keep red chief away from the town to kidnap him, although if your wanting the answer based on the movie it's because they bought the mine and found out it was worthless, so they used it as a hiding spot to keep red chief.