Other contributors have said "What causes pain in the upper left quadrant of the abdomen?" is the same question as "What would cause you pain in the upper left quadrant of your abdomen?". If you believe that these are not asking the same thing and should be answered differently, click here.
That is where part of the bowel is. You have some feces there on its way out. It may hurt because it is more than usual, or harder than usual. Wait a few days. If you go, it will go away. Try a gentle laxative. If it continues for more than a week. See the doc.