Intrinsic magnetism in superconducting infinite-layer nickelates