It's the same rule that says you can't dribble it in from a penalty, hit the post and score the rebound without another player touching it and it applies to all set pieces.
It's not a new rule, it's been there for probably longer than I've been alive.