This term probably derived from the days of canal transport when the lead barge sometimes towed a smaller barge or barges called Butty or Butty's. It was initially then used in the pits to mean a miner's young helper, it later evolved to mean any workmate, now it applies to any friend.
Found on http://www.welshcoalmines.co.uk/Glossary.htm