From Old Japanese.
Ultimate derivation unclear. Some theories derive this as a Japanese compound of 株 (kabu, “stock, root”) + 根 (ne, “root, origin”) or 名 (na, “name”). However, the required /u/ → /a/ sound shift would be unusual.
Another thought is that this might be a borrowing from, or somehow otherwise related to, Korean 골품 (golpum), a Sino-Korean term also spelled 骨品 (literally “bones + goods”), the name for a kind of kinship hierarchy that was prevalent in the Silla kingdom. This latter theory and its related “bone” sense might also account for the homophony with 屍 (kabane, “corpse, dead body”).