It is a phrase that usually means that someone behaved in a way that is rare, unusual or strange for a while or small amount of time...
Usually means that someone behaved in a way that is rare, unusual or strange for a while or small period of time.