Bones change all the time. The body constantly makes new bone and breaks down old bone. This process is called remodeling. When you're young, new bone is made faster than old bone is broken down. So the amount of bone mass you have goes up. Most people reach peak bone mass around age 30. After that, bone remodeling continues. But you lose slightly more bone mass than you gain.
Osteoporosis is a condition that causes bones to become weak and easily broken. How likely you are to develop osteoporosis depends on how much bone mass you have by the time you're 30 and how quickly you lose it after that. The higher your peak bone mass, the more bone you have built up. The more bone you have built up, the less likely you are to develop osteoporosis as you get older.