〜ることがある This pattern is used to say that something happens sometimes, but not always. It literally means "there are occasions when ~".
Formation
dictionary form / ない-form + ことがある
| 遅れる | 遅れる + ことがある | 遅れることがある |
| 休む | 休む + ことがある | 休むことがある |
| 食べる | 食べない + ことがある | 食べないことがある |
Examples
電車が遅れることがあります。
The train is sometimes late.
忙しいとき、朝ご飯を食べないことがある。
When I'm busy, I sometimes skip breakfast.