If. Life is a prison, why is it?

I’ve partially read about life being a prison before but I can’t find anything that could explain or describe this. Follow up question if life is a prison then are the earth/universe/existence prisons as well?