The Buffalo Rifle in Red Dead Redemption is unlocked by completing a specific challenge.
You earn it after finishing the Master Hunter 5 Challenge. Work through the hunting objectives required for that challenge, and once it is complete, the Buffalo Rifle is added to your arsenal.