I was wondering why cousin marriage is allowed when it can cause some type of sickness for the children?

This is the ruling of Allah. It doesn’t always cause sickness.