Non-null assertion with getElementById in TypeScript

How to understand the bang in createRoot call