Because you advised the OP to do likewise. That’s the problem. You as much as told the OP to just pick a parish and consider himself a member there–without any regard for what is actually written in canon law (in fact, you implied that canon law says it doesn’t matter), and without any knowledge of the OP’s own situation. You based your answer on your own anecdotal experience of registration, rather than on what the universal canon law of the Church says with regard to parish membership.
It’s not a violation of canon law to register at a parish other than the parish where you actually live because there is no such thing as parish registration in canon law–there is parish membership, not parish registration.
Can. 102 §1. Domicile is acquired by that residence within the territory of a certain parish or at least of a diocese*, which either is joined with the intention of remaining there permanently unless called away or has been protracted for five complete years.
The phrase “at least a diocese” refers to people who live within a diocese, but not within the boundaries of a parish, or to matters where it’s an issue of the jurisdiction of the bishop, or to those who change their residence from one parish to another (people who move frequently).
Can. 107 §1. Through both domicile and quasi-domicile, each person acquires his or her pastor and ordinary.
Catholics do not acquire a parish/pastor through registration, they acquire a parish and a pastor by virtue of residence (domicile).
So, it’s no surprise that the staff told you that you can register wherever you want–because registration means nothing in the end anyway–registering does not make one a parishioner of a parish, nor does registration in a different parish mean that a Catholic is no longer a member of the parish of residence.