Well, he's 38, his bones are probably not as strong as they used to be. Also, Weidman blocked Silva's leg kick with his lower femur, which is the strongest bone in the body. A shin hitting a femur can break, although it's rare.
Also, like Bas Rutten explains in this video, you can break your shin doing a leg kick if you do it wrong and don't turn your hips.