The oil giant was expected to report lower profits for last year after record earnings in 2022.