Apps downloaded with one account cannot be redownloaded with a different account. You have several options.
1) As mentioned previously, delete the apps and download them with your account.
2) In the support article: If you subscribe to Apple One and use a different Apple ID for iCloud - Apple Support Apple alludes to using a different Apple ID just for media, subscriptions, and purchases, but doesn't describe how to do this. See if these work:
In iOS/iPadOS: Go to Settings > [your Apple ID] > Media & Purchases. Sign out of the current ID and sign in with a different one.
In Ventura or later: First, quit Settings. Then, in App Store, choose “Sign Out” in the Store menu, then click on the “sign in” button that appears in the main window. You can then sign into the other account. (from: Using different Apple ID for media & purc… - Apple Community )
Related to that is: Use a different Apple ID to share purchases with Family Sharing as outlined in Use a different Apple Account to share purchases with Family Sharing - Apple Support
3) Set up Family Sharing with the other person so you don't have to buy the again. How to set up Family Sharing on your iPhone, iPad, or Mac - Apple Support