Why a case class as distinct to a regular class here?