It is ok, it works the same in other image editing applications.
It happens because selection edge pixels are semi-transparent.
Let's say the pixel opacity is 50%. Now when you paint, you fill layer pixel with only 50%, so layer pixel opacity is 50% after making a stroke.
Then you erase the selection-edge pixes,but you erase only "50%" of alpha (because selection pixel opacity is 50%), so the layer pixels opacity goes down from 50% to 25%.