A common explanation of angled shooting goes something like this:
When you shoot uphill, the pellet has to fight gravity.
That is usually followed by the apparent opposite:
When you shoot downhill, gravity is helping the pellet.
Both statements contain a tiny grain of truth.
Neither explains where the pellet lands.
The important thing is not whether the pellet is travelling upwards or downwards. It is the direction of the pellet’s path compared with the direction of gravity.
The rifle rotates. Gravity doesn't.
Gravity continues to pull vertically towards the Earth. When the rifle is tilted, the direction of the pellet changes, but gravity carries on pulling in exactly the same direction as before.
That changes how gravity affects the pellet’s path.
It is why an angled pellet normally lands higher than expected whether the target is uphill or downhill.