The problem with old laws is that we rewrote the "constitution" after independence, but we did not rewrite the Indian Penal Code, that defines the punishments for crimes etc. We continued the same 1860 thing that was written during British times. Over time, governments have abolished obsolete or regressive laws, but a lot of colonial hangover remains.