Update child coordinates relative to parent
Insert a bounding box as parent.
Does a child object inherit the matrix from the parent?
Can slip in a new parent

Copy the object, clear modifiers, constraints and animation data
Make the copy the parent
Set the copy matrix local to identity, in this case with basis and parent_inverse both identity.  As shown in link above when calculating the world matrix by chaining the matrices up the parents, an identity local matrix does not contribute to the result.
All local transforms that were on input mesh are now transferred to the bbox parent.

Test script, select a mesh object, run script.
import bpy
from mathutils import Matrix, Vector

def bbox2mesh(ob):
    bbox = ob.copy()
    bbox.constraints.clear()
    bbox.modifiers.clear()
    bbox.animation_data_clear()
    faces = ((0, 1, 2, 3),
             (4, 7, 6, 5),
             (0, 4, 5, 1),
             (1, 5, 6, 2),
             (2, 6, 7, 3),
             (4, 0, 3, 7),
            )
    me = bpy.data.meshes.new(&quot;BBox&quot;)
    me.from_pydata([Vector(b) for b in ob.bound_box], [], faces)
    bbox.display_type = 'WIRE'
    bbox.data = me
    return bbox
    
context = bpy.context
ob = context.object
coll = context.collection
bbox = bbox2mesh(ob) # make a copy
ob.parent = bbox
ob.matrix_basis = ob.matrix_parent_inverse = Matrix()
coll.objects.link(bbox)
context.view_layer.objects.active = bbox