When we hear the word "byproduct," it often designates something unwanted or even negative coming out of a decision or process that provides some product or outcome we do want. In the world of mining, however, byproducts are often valuable minerals produced in the course of extracting other desired minerals from their ores.
For example, zinc mines often also produce profitable quantities of lead and silver. And, it can be the other way round; gold, silver and copper mines can sometimes also contain profitable quantities of zinc. I mention zinc, in particular, because zinc mines are one source for gallium, a metal that is important for advanced semiconductors. Gallium is also used in aerospace, optical devices and medical devices. Needless to say it is in high demand and is important for military applications.
Another source of gallium is aluminum ore, usually bauxite, and it's the biggest source. What you will not find on planet earth are any gallium mines because geologic processes in the Earth simply do not allow gallium to concentrate in a manner that would create a profitable ore body. So, it turns out that no matter how high the price of gallium goes—and the price is up by almost a factor of five since 2016—its supply depends almost exclusively on the rate of extraction of aluminum and zinc ores (and not all such ore bodies have concentrations of gallium that are worth extracting).