The idea is to break the chain of transmission. After that we hope that subsequent transmissions are small enough not to overwhelm systems and are detected quickly enough to be contained. And hope that a vaccine arrives that can provide herd immunity.