In the Darbar why do Gurdwara's have a "ladies side" and "men's side"? When did this become a thing?

When did this segregation become a thing?

When did this segregation become a thing?