Cavitation can occur through different mechanisms. In some cases, it results from the programmed cell death known as apoptosis. In other instances, it may be due to physical forces, like high-pressure gradients or mechanical stress, which cause tissues to break apart and form cavities.