Why do people write she/her?

Is this so people know what gender you indentify as?? I don't get why people need to put this on posts/bios. Sorry if I'm offending anyone!