An Xbox Live subscription card only works for one Xbox account.
Think of it as a "family plan" for a single Xbox account. For sharing, use Xbox Family Settings or Xbox Game Pass Ultimate family sharing.