Why New collection is not visible?

I am learning scripting in Blender. I tried to create a new collection by the following script:

collection = bpy.data.collections.new(“MyCollection”)

In the Outliner no new collection named “MyCollection” is created. I then listed out the collections in Blender data by:

list(bpy.data.collections)

and sure enough the new collections was listed among the list of collections. Why the new collections is not displayed in the Outlier?

you need to link it to the scene collection