Global Layout and providers wrap the entire application, which means loading once and persists across all pages.
Layout.tsx inside app directory defines layouts for individual pages or a group of pages.
I hope this will help you understand.