You loiter around with a weapon because you're currently doing your service and duty to your country. You're standing guard outside, waiting just in case something will happen.
You're about halfway through your service, when a yak (やく) walks by. It stops directly in front of you and grunts. "Excuse me, Mr. Yak, but it's my duty to escort you away from my country."