There are some Pokemon that you can get in egg in evolved form but not Alakazam.
munchlax/snorlax hold lax incense to breed munchlax
mantine/mantyke hold wave incense to breed mantyke
roselia/roserade hold rose incense to breed budew
Wynaut/wobbufet hold Lax incense
Those are called baby Pokemon otherwise you need to hack your game like Pokewatt said
Baby Pokemon But this doesnt happen with all baby Pokemon btw