There is a lot of context missing that would help to understand this better.
For example, in some jobs when someone is out of office, others pick up the work and understand what to do so overall, the work that needs to be done is handled.
For other jobs, the person is an expert or the single source of information, etc., so when they are out of office, they are still on the hook to get things done. They can do it in advance, do it later and catch up, or try to delegate parts/all of it to someone else, but it remains that person's responsibility to manage it and communicate well so everyone who needs to know the plan is informed.
I don't know which fits your scenario but if you were out and didn't get something done, thank the person who did it, gently apologize for being out and unable to do it, and move on.
Maybe ask your manager how you should handle things like this in the future so you'll better understand everyone's expectations. You said it's a new job so you're still learning how things like this should work there.