Laying on a grave while divining the gifts this dead person supposedly had in their life looks like necromancy (remember to not give the appearance of evil)
Why can't they pray at home?
Why do they have to be lying or crouching around or on the grave?
Ed I have eyes and a functioning mind this was not practiced in scripture