An important question about those sorts of actions is the logistic cost and the risk of escalation versus gains.
In Swedish waters, such intrustions meant:
Political gains as Russia enforce its capacity to be a threat
Military gains about knowing waters where they could be landing during WW3
Low risks for the submarines to be attacked since Sweden was not ...