It’s not the “bones” that are popping (you’d have a fracture in that case!), it’s the joints. Joints develop gas bubbles due to which stiffness is felt. When this gas is released (giving you that satisfying surge of relief), a popping sounds is heard, such as upon cracking knuckles. This is a painless occurrence.