Hello (Admin) Pawandip Kaur,
Thank you for posting in Q&A forum.
You can check if you check the option "password Never Expires" on user Properties.
Also, you can check if you deploy FGPP in AD environment. FGPP has a higher priority than the default domain password policy.
For more information about FGPP, please check link below.
https://learn.microsoft.com/en-us/archive/blogs/canitpro/step-by-step-enabling-and-using-fine-grained-password-policies-in-ad
And run command to check if this user applies FGPP: Get-ADUserResultantPasswordPolicy username
I hope the information above is helpful.
If you have any question or concern, please feel free to let us know.
Best Regards,
Daisy Zhou