Why is it good to elevate a broken bone leg?

Prevents edema. Elevation of the leg prevents the development of edema or fluid which may complicate things.
Decrease swelling. Elevation helps to decrease the swelling and subsequent pain associated with a fracture.