What is the purpose of a civil lawsuit and criminal lawsuit?

To settle a dispute