The lock is most likely set to the child safety lock so it cannot be opened from the inside. How to unset the child safety lock differs per brand and type.