Because the condition and result are so tightly bound, when this form is used in an invitation, the invitation is only made if the condition is fulfilled.
It’s a polite way to give somebody room to decline.
時間があれば、ぜひ遊びにけて下さい。
Please come round, if you have time.