Air friction causes the oscillating pendulum to damp and thus eventually it comes to rest after some time.