The exclamation mark
! is used to exclude pages that match the condition they prefix.
For example, to show a widget only on pages except a specific page, the prefix can be used in the conditions as follows:
Another example, if you want to show a widget or a sidebar on any Product page but not for products which belong to the Promotions category, you would use the Visibility option Show only on these pages and these conditions: