Why are there two shift buttons on a computer?

Because some people are left handed and others are right handed. It's based on preference