You should sit them down and talk to them about why it happened, and what needs to change.
I grew up in a house with a mum who 'lost her shit' on a regular basis, and I know my brother and I weren't bad kids at all. Years later I learned she had (then untreated) depression, but the damage was done.
She would scream at us, which was scary, and then she just wouldn't speak to us for days on end. Then, suddenly, everything was back to normal. No apology, no discussion, nothing.
Living in that kind of atmosphere has left me with shocking anxiety and other issues.
So please, sit them down and explain what happened. Say that you shouldn't have sworn at them, but that they also need to take responsibility, and that they need to stop lazing around, and try to get on with each other better.
But don't just leave it, because things will end up bubbling to the surface again.