This is normal behavior. You can assign a ticket to an agent that has access to the tickets in the department, and it will not transfer the ticket to that users primary department. You will have to also transfer the ticket if you want it to now belong in that department.