The other way? So at their own troops?
It's seriously astounding the math and thought that goes into shooting at long range. It makes me realize why I used to miss all the time as a kid; it's not just point and shoot.
Why can't you have the situational awareness that nobody is there just by looking with your eyes? Are you saying that risk of shooting objects on your enemy's side and giving away your position is lower than the risk of accidentally shooting someone on your side when firing at a rock in an open field? It just... doesn't make any intuitive sense to me.
The other big factor is what your buddies in the trench will think of this arrangement. If they know it's you shooting over their heads they will be absolutely pissed, and probably face some sort of discipline from officers. If they DON'T know it's you shooting in their general direction (which they probably won't unless you make sure to tell everyone in advance) it will probably prompt return fire. If they can tell from the sound or muzzle flash that the shot came from their trenches, they may think a sniper infiltrated their lines, which will merit a particularly aggressive response.
I wouldn't be surprised if someone, somewhere during the war did this, but it certainly wouldn't be condoned.
The entire setup of an army, all its communication mechanisms, and systems of control and safety measures, are focused on telling you about what is happening forward along the axis.
Trying to figure out if it's safe to fire backwards is going to be massively error-prone as nobody is set up to tell you this and asking it is going to cause massive confusion.
Also, you can hit things that you can't see, with ricochet and fall of shot.
Other comments about what calibrating actually means seem to have filled in that missing intuition though.
This was circa the 1916-1918 time-frame. Modern range finding equipment did not exist, and what did exist at the time very likely required someone carrying a rather large range finding target over to the enemy lines to use to determine range (with the obvious negative result to that poor individual).
With no easy way to determine range (distance to target) beyond eyeball estimates, the only real way to sight in the sniper rifle was by taking test shots at a target and watching where one's bullet actually lands as compared to that target.
Unless that range also exactly matches the range to the enemy targets, from your current nest, you won't be properly sighted in for your intended targets.
The ranges over which snipers make kills is sufficient that even a very small miss-alignment of the sights translates to a miss (often by many yards) at the target. According to Wikipedia [1], the sniper record is 3,540m (3,871 yd). That is 3.5km - imagine targeting something 3.5km away, firing, and having your shot hit the target.
Even in 1916, while sniper's may not have operated at 3.5km distances, they could easily have been operating across 500-1000m distances (the Wikipedia article lists a 1918 record of 1,280m (1,400 yd) or 1.2km). Even at those relatively shorter ranges, the margin for misalignment is still tiny. You have to actually sight the rifle in for the actual range, the actual elevation (whether you are shooting uphill or downhill) the current wind conditions, etc. And still hit a rather small target. Aligning to some other fixed berm will not be nearly accurate enough.
[1] https://en.wikipedia.org/wiki/Longest_recorded_sniper_kills
Because they're using fixed (non-floating) barrels and they need to re-zero in the field and can't get back to a rear area to do that.