While STIs are the primary cause of PID in the majority of instances, it can also develop as a result of delivery or invasive medical procedures.