It is a choice by the female to work or not to work. If they work they get paid by the employer. The essense of law is not to discriminate a female on some thing that is her right. BTW there is a law by Indian government to provide the upkeep of all pregnant females for free in Government Hospitals. This is under a WHO program.