Brain forgetting

Something is wrong. I set baby in play yard and I went to the bathroom I completely forgot and thought I left the baby on my bed and walked out.

I also thew away trash and I forgot I just went downstairs and threw it away.

What's going on should I go see a doctor I feel sleepy dizziness