Salesforce does notallow duplicate usernames, but we can have the same user name in production and sandbox if we want.
Production and Sandbox are Different server sets. The user duplication is not allowed on the production server set or on the sandbox server set. The two are not referenced to each other though because of the sandbox copy. It is expected that an system admin or user would want the same username for sandbox.