In machine learning it's used as an activation function. Activation functions are used to add non-linearity to the model. I think sigmoid functions are inspired from neurons, but I'm not sure exactly how. Nowadays, ReLU activations are used more often than sigmoidals because they are quicker to compute.