Original: Bast was a goddess of the sun throughout most of Ancient Egyptian history, but later when she was changed into a cat goddess rather than a lion, she was changed to a goddess of the moon by Greeks occupying Ancient Egypt toward the end of its civilization.
Simplified: She was originally a goddess of the sun, but later changed by the Greeks to a goddess of the moon.