The forces on the wheel axle from using a disc brake can be over double your body weight*, and if the QR isn't clamping tightly enough, the axle will slip until the nut meets the lawyer lips. After you stop braking, your weight (or the next pothole) pushes the axle back to the top. This back and forth motion will tend to loosen the adjuster nut, especially if it's at the slipping (disc) side, and as it gets looser the less hard you have to brake to cause slip.
If you rarely take the wheel out, and don't notice the looseness or the top of the wheel moving sideways under braking, the QR can eventually get loose enough to allow the wheel to come out of the forks despite the lawyer lips. This generally hurts.
As stated, use a strong QR skewer (Shimano type enclosed cam, or an allen key skewer), and keep it properly tight. It's also best to have the adjuster nut at the other side of the hub from the disc.
* You can brake at about 0.5g before the back wheel lifts, a 160 mm disc is about 1/4 the size of the wheel, giving double bodyweight. The direction of the wheel ejection force is downwards and backwards, perpendicular to a line between the axle and the disc pads.