Quasi-contracts are obligations created by law based on principles of justice and equity, not by any actual agreement between parties. They arise in specific situations like unjust enrichment (receiving a benefit you shouldn't keep), where obligations exist without a contract having been formed.