You can use a non-capturing group if you need to group something but you're not interested in the content. For example a URL needs to start with either http:// or https://. You don't care which one it is, it just has to be there. So you can use a non-capturing group like this:
This pattern has two groups. A non-capturing group that matches either http:// or https:// and a capturing group for the actual URL.