Especially for beginning pianists, hand independence with articulation is tricky. The temptation is to do the same thing in both hands.
Here is a simple exercise to practice this. Be sure to not break the slur in the slurring hand.
I think it is a cross brain thing. It is hard to do different things in each hand.
And then for a harder challenge try switching between the two like this.