Go to the trouble (of doing something)

To make an extra effort to do something.

My aunt went to the trouble of buying a new bed for her guests.