I have a question about the health value

UPROPERTY(EditDefaultsOnly)

    float MaxHealth = 100;

    UPROPERTY(VisibleAnywhere)

    float Health;

It’s written like this, and it says Health = MaxHealth on BeginPlay.
But what I’m curious about is that when you start the game in the editor, you get Max Health as shown in the picture below, but it’s zero Health. Why?
스크린샷 2025-04-06 134138

Because you’ve not set a value for Health. The default would be zero. I’m assuming it should be set in BeginPlay?