User passwords are expired after a certain number of days. You can set users password to never expire in Office 365.
This article will teach you how you can set user's password expiration policy to never expire. However, this is a security risk and it is not recommended.
Step-By-Step