Here’s the thing about baking pans. They are traitors. Even the “non-stick” ones will sometimes hold onto your cake like it owes them money. Do not trust them.
Always grease your pan. Use butter, spray, or shortening. And for the love of all that is fluffy, dust it with flour or line it with parchment paper. It takes ten seconds, but it saves you from crying over a cake that crumbled into a thousand pieces when you tried to flip it out. I’ve been there. It’s not pretty.