Carbines were usually less accurate and less powerful than the longer muskets (and later rifles) of the infantry, due to a shorter sight plane and lower velocity of bullets fired from the shortened barrel. With the advent of fast-burning smokeless powder, the velocity disadvantages of a shorter barrel became less of an issue (see internal ballistics). Eventually, the use of horse-mounted cavalry would decline. But carbines continued to be issued and used by many who preferred a lighter, more compact weapon even at the cost of reduced long-range accuracy and power, such as artillery troops, who might need to defend themselves from attack but would be hindered by keeping full-sized rifles around; thus, a common title for many short rifles in the late 19th century was artillery carbine.
During the early 19th century, carbines were often developed separately from the infantry rifles and, in many cases, did not even use the same ammunition, which made for supply difficulties. A notable weapon developed towards the end of the American Civil War by the Union was the Spencer carbine, one of the very first breechloading, repeating weapons. It had a spring-powered, removable tube magazine in the buttstock which held seven rounds and could be reloaded by inserting spare tubes. It was intended to give the cavalry a replacement weapon which could be fired from horseback without the need for awkward reloading after each shot (although it saw service mostly with dismounted troopers and infantrymen, as was typical of cavalry weapons during that war). In the late 19th century, it became common for a number of nations to make bolt-action rifles in both full-length and carbine versions. One of the most popular and recognizable carbines were the lever-action Winchester carbines, with several versions available firing revolver cartridges. This made it an ideal choice for cowboys and explorers, as well as other inhabitants of the American West, who could carry a revolver and a carbine, both using the same ammunition.
The above information is from Wikipedia.