They missed several code requirements:
Working Space (NEC 110.26): The panel needs 30" wide x 36" deep clear working space in front. A bathroom layout likely violates this with fixtures, doors, or the linen closet encroaching.
Illumination (NEC 110.26(C)): If the panel is in a dwelling unit, it requires a switched lighting outlet within the working space. Bathrooms need their own lighting per NEC 210.66, but the panel area needs separate illumination.
GFCI Protection (NEC 210.8(A)(1)): Bathroom receptacles must be GFCI protected. If any new bathroom circuits are added, they need GFCI protection.
Accessibility (NEC 110.26(A)): The panel must remain accessible without tools, keys, or special knowledge. A linen closet door or bathroom access could create accessibility issues.
Ventilation: Bathroom moisture could affect the electrical panel. While not explicitly required by code for panels, excessive humidity is problematic.
Structural: The linen closet built against the adjacent wall may interfere with required clearances or create accessibility problems.
The architect likely assumed "accessible" means the cover clears, but code requires specific working space dimensions and conditions that a bathroom remodel typically violates. This needs electrical review and likely panel relocation or significant layout changes.