The only time the VLAN number have to match is when you have trunks established between the switches.
If you don't have trunks, then the VLAN numbers don't HAVE to match. But as you're seeing, it makes things a bit confusing. Most people would keep them the same and avoid the possible confusion.